home *** CD-ROM | disk | FTP | other *** search
/ CD Classic 39 / CD CLASSIC #39 (1998).iso / EMPRESA / visio / Vistdstd / Install / Data.Z / VisiCPP.H < prev    next >
C/C++ Source or Header  |  1997-11-11  |  581KB  |  19,118 lines

  1. //  Wrapper class(es) generated by Dynamo!
  2. //  This file was generated at 10:29:10 on 09/26/1997
  3. //  by DynamoCL - Version 1.07
  4. //  ***************************************************************************
  5.  
  6. //
  7. //  D:\ml\c-cpp\unsup\Visicpp.h - C++ Wrappers for Type Library "Visio"
  8. //  Copyright (C) 1996-97 Visio Corporation. All rights reserved.
  9. //
  10.  
  11. //  ***************************************************************************
  12. //  'Sentinel'
  13.  
  14. #ifndef _Visicpp_H
  15. #define _Visicpp_H
  16.  
  17. #define _Visio_WRAPPERS
  18. #define _Visio_WRAPPERS_VERSION 0x00040006
  19.  
  20. //  ***************************************************************************
  21. //  Contents of header.h
  22.  
  23. //  Start D:\ml\bat\header.vis
  24. #include <windows.h>
  25. #include <ole2.h>
  26.  
  27. #if !defined (_WIN32)
  28.     #include <dispatch.h>
  29. #endif
  30.  
  31. //    for Visio's dual OLE Automation interfaces
  32. #include "visio.h"
  33.  
  34. //    for CoCreateAddonSink -- Event stuff
  35. #include "addsink.h"
  36.  
  37. //
  38. //    Define these so the old files are not included after
  39. //    this one accidentally...
  40. //
  41. #define _IVISPROX_H
  42. #define _IVISPROX_HPP
  43. #define NO_VISIO_41_COMPATIBILITY_LAYER
  44.  
  45. //
  46. //
  47. #define CVisioChars CVisioCharacters
  48. #define CVisioEvents CVisioEventList
  49.  
  50. //
  51. //    Include the BSTR and VARIANT helper classes:
  52. //
  53. #ifndef HELPERS_____
  54. #include "helpers.h"
  55. #endif  //  HELPERS_____
  56.  
  57. //  End D:\ml\bat\header.vis
  58.  
  59.  
  60. //  ***************************************************************************
  61. //  Macros
  62.  
  63. #ifndef VW_INTERFACE_NOT_SET
  64. #define VW_INTERFACE_NOT_SET    MAKE_HRESULT(SEVERITY_ERROR, 0x06a5, 0x4001);
  65. #endif  //  VW_INTERFACE_NOT_SET
  66.  
  67. #ifndef VW_NOT_IMPLEMENTED_IN_THIS_VERSION
  68. #define VW_NOT_IMPLEMENTED_IN_THIS_VERSION    MAKE_HRESULT(SEVERITY_ERROR, 0x06a5, 0x4002);
  69. #endif  //  VW_NOT_IMPLEMENTED_IN_THIS_VERSION
  70.  
  71. #ifndef CHECK_IP
  72. #define CHECK_IP(ip, className, methName)
  73. #endif  //  CHECK_IP
  74.  
  75. #ifndef CHECK_HRESULT
  76. #define CHECK_HRESULT(hr, className, methName)
  77. #endif  //  CHECK_HRESULT
  78.  
  79. #ifndef VW_CONST
  80. #define VW_CONST const
  81. #endif  //  VW_CONST
  82.  
  83. #ifndef VW_INLINE
  84. #define VW_INLINE inline
  85. #endif  //  VW_INLINE
  86.  
  87. #ifndef FAR
  88. #define FAR
  89. #endif  //  FAR
  90.  
  91. #ifndef VW_PUBLIC
  92. #define VW_PUBLIC public
  93. #endif  //  VW_PUBLIC
  94.  
  95. #ifndef VW_PROTECTED
  96. #define VW_PROTECTED protected
  97. #endif  //  VW_PROTECTED
  98.  
  99. #ifndef VW_PRIVATE
  100. #define VW_PRIVATE private
  101. #endif  //  VW_PRIVATE
  102.  
  103.  
  104. //  ***************************************************************************
  105. //  Forward declarations and typedefs
  106.  
  107. class FAR CVisioUnknown;
  108.  
  109. class FAR CVisioApplication;
  110. class FAR CVisioCell;
  111. class FAR CVisioCharacters;
  112. class FAR CVisioConnect;
  113. class FAR CVisioConnects;
  114. class FAR CVisioDocument;
  115. class FAR CVisioDocuments;
  116. class FAR CVisioMaster;
  117. class FAR CVisioMasters;
  118. class FAR CVisioPage;
  119. class FAR CVisioPages;
  120. class FAR CVisioSelection;
  121. class FAR CVisioShape;
  122. class FAR CVisioShapes;
  123. class FAR CVisioStyle;
  124. class FAR CVisioStyles;
  125. class FAR CVisioWindow;
  126. class FAR CVisioWindows;
  127. class FAR CVisioLayer;
  128. class FAR CVisioLayers;
  129. class FAR CVisioFont;
  130. class FAR CVisioFonts;
  131. class FAR CVisioColor;
  132. class FAR CVisioColors;
  133. class FAR CVisioAddon;
  134. class FAR CVisioAddons;
  135. class FAR CVisioEvent;
  136. class FAR CVisioEventList;
  137. class FAR CVisioGlobal;
  138. class FAR CVisioEDocument;
  139. class FAR CVisioEApplication;
  140. class FAR CVisioEWindows;
  141. class FAR CVisioEWindow;
  142. class FAR CVisioEDocuments;
  143. class FAR CVisioEStyles;
  144. class FAR CVisioEStyle;
  145. class FAR CVisioEMasters;
  146. class FAR CVisioEMaster;
  147. class FAR CVisioEPages;
  148. class FAR CVisioEPage;
  149. class FAR CVisioEShape;
  150. class FAR CVisioECharacters;
  151. class FAR CVisioECell;
  152. class FAR CVisioMenuItem;
  153. class FAR CVisioIEnumVMenuItem;
  154. class FAR CVisioMenuItems;
  155. class FAR CVisioMenu;
  156. class FAR CVisioIEnumVMenu;
  157. class FAR CVisioMenus;
  158. class FAR CVisioMenuSet;
  159. class FAR CVisioIEnumVMenuSet;
  160. class FAR CVisioMenuSets;
  161. class FAR CVisioToolbarItem;
  162. class FAR CVisioIEnumVToolbarItem;
  163. class FAR CVisioToolbarItems;
  164. class FAR CVisioToolbar;
  165. class FAR CVisioIEnumVToolbar;
  166. class FAR CVisioToolbars;
  167. class FAR CVisioToolbarSet;
  168. class FAR CVisioIEnumVToolbarSet;
  169. class FAR CVisioToolbarSets;
  170. class FAR CVisioStatusBarItem;
  171. class FAR CVisioIEnumVStatusBarItem;
  172. class FAR CVisioStatusBarItems;
  173. class FAR CVisioStatusBar;
  174. class FAR CVisioIEnumVStatusBar;
  175. class FAR CVisioStatusBars;
  176. class FAR CVisioAccelItem;
  177. class FAR CVisioIEnumVAccelItem;
  178. class FAR CVisioAccelItems;
  179. class FAR CVisioAccelTable;
  180. class FAR CVisioIEnumVAccelTable;
  181. class FAR CVisioAccelTables;
  182. class FAR CVisioUIObject;
  183. class FAR CVisioHyperlink;
  184. class FAR CVisioOLEObjects;
  185. class FAR CVisioOLEObject;
  186. class FAR CVisioPaths;
  187. class FAR CVisioPath;
  188. class FAR CVisioCurve;
  189. class FAR CVisioExtender;
  190. class FAR CVisioDispExtender;
  191. class FAR CVisioAmbients;
  192.  
  193.  
  194. #ifndef VISIO_LPS_FORWARD_DECLARED
  195. #define VISIO_LPS_FORWARD_DECLARED
  196.  
  197. interface IVApplication;
  198. typedef IVApplication FAR *LPVISIOAPPLICATION;
  199.  
  200. interface IVCell;
  201. typedef IVCell FAR *LPVISIOCELL;
  202.  
  203. interface IVCharacters;
  204. typedef IVCharacters FAR *LPVISIOCHARACTERS;
  205.  
  206. interface IVConnect;
  207. typedef IVConnect FAR *LPVISIOCONNECT;
  208.  
  209. interface IVConnects;
  210. typedef IVConnects FAR *LPVISIOCONNECTS;
  211.  
  212. interface IVDocument;
  213. typedef IVDocument FAR *LPVISIODOCUMENT;
  214.  
  215. interface IVDocuments;
  216. typedef IVDocuments FAR *LPVISIODOCUMENTS;
  217.  
  218. interface IVMaster;
  219. typedef IVMaster FAR *LPVISIOMASTER;
  220.  
  221. interface IVMasters;
  222. typedef IVMasters FAR *LPVISIOMASTERS;
  223.  
  224. interface IVPage;
  225. typedef IVPage FAR *LPVISIOPAGE;
  226.  
  227. interface IVPages;
  228. typedef IVPages FAR *LPVISIOPAGES;
  229.  
  230. interface IVSelection;
  231. typedef IVSelection FAR *LPVISIOSELECTION;
  232.  
  233. interface IVShape;
  234. typedef IVShape FAR *LPVISIOSHAPE;
  235.  
  236. interface IVShapes;
  237. typedef IVShapes FAR *LPVISIOSHAPES;
  238.  
  239. interface IVStyle;
  240. typedef IVStyle FAR *LPVISIOSTYLE;
  241.  
  242. interface IVStyles;
  243. typedef IVStyles FAR *LPVISIOSTYLES;
  244.  
  245. interface IVWindow;
  246. typedef IVWindow FAR *LPVISIOWINDOW;
  247.  
  248. interface IVWindows;
  249. typedef IVWindows FAR *LPVISIOWINDOWS;
  250.  
  251. interface IVLayer;
  252. typedef IVLayer FAR *LPVISIOLAYER;
  253.  
  254. interface IVLayers;
  255. typedef IVLayers FAR *LPVISIOLAYERS;
  256.  
  257. interface IVFont;
  258. typedef IVFont FAR *LPVISIOFONT;
  259.  
  260. interface IVFonts;
  261. typedef IVFonts FAR *LPVISIOFONTS;
  262.  
  263. interface IVColor;
  264. typedef IVColor FAR *LPVISIOCOLOR;
  265.  
  266. interface IVColors;
  267. typedef IVColors FAR *LPVISIOCOLORS;
  268.  
  269. interface IVAddon;
  270. typedef IVAddon FAR *LPVISIOADDON;
  271.  
  272. interface IVAddons;
  273. typedef IVAddons FAR *LPVISIOADDONS;
  274.  
  275. interface IVEvent;
  276. typedef IVEvent FAR *LPVISIOEVENT;
  277.  
  278. interface IVEventList;
  279. typedef IVEventList FAR *LPVISIOEVENTLIST;
  280.  
  281. interface IVGlobal;
  282. typedef IVGlobal FAR *LPVISIOGLOBAL;
  283.  
  284. interface EDocument;
  285. typedef EDocument FAR *LPVISIOEDOCUMENT;
  286.  
  287. interface EApplication;
  288. typedef EApplication FAR *LPVISIOEAPPLICATION;
  289.  
  290. interface EWindows;
  291. typedef EWindows FAR *LPVISIOEWINDOWS;
  292.  
  293. interface EWindow;
  294. typedef EWindow FAR *LPVISIOEWINDOW;
  295.  
  296. interface EDocuments;
  297. typedef EDocuments FAR *LPVISIOEDOCUMENTS;
  298.  
  299. interface EStyles;
  300. typedef EStyles FAR *LPVISIOESTYLES;
  301.  
  302. interface EStyle;
  303. typedef EStyle FAR *LPVISIOESTYLE;
  304.  
  305. interface EMasters;
  306. typedef EMasters FAR *LPVISIOEMASTERS;
  307.  
  308. interface EMaster;
  309. typedef EMaster FAR *LPVISIOEMASTER;
  310.  
  311. interface EPages;
  312. typedef EPages FAR *LPVISIOEPAGES;
  313.  
  314. interface EPage;
  315. typedef EPage FAR *LPVISIOEPAGE;
  316.  
  317. interface EShape;
  318. typedef EShape FAR *LPVISIOESHAPE;
  319.  
  320. interface ECharacters;
  321. typedef ECharacters FAR *LPVISIOECHARACTERS;
  322.  
  323. interface ECell;
  324. typedef ECell FAR *LPVISIOECELL;
  325.  
  326. interface IVMenuItem;
  327. typedef IVMenuItem FAR *LPVISIOMENUITEM;
  328.  
  329. interface IEnumVMenuItem;
  330. typedef IEnumVMenuItem FAR *LPVISIOIENUMVMENUITEM;
  331.  
  332. interface IVMenuItems;
  333. typedef IVMenuItems FAR *LPVISIOMENUITEMS;
  334.  
  335. interface IVMenu;
  336. typedef IVMenu FAR *LPVISIOMENU;
  337.  
  338. interface IEnumVMenu;
  339. typedef IEnumVMenu FAR *LPVISIOIENUMVMENU;
  340.  
  341. interface IVMenus;
  342. typedef IVMenus FAR *LPVISIOMENUS;
  343.  
  344. interface IVMenuSet;
  345. typedef IVMenuSet FAR *LPVISIOMENUSET;
  346.  
  347. interface IEnumVMenuSet;
  348. typedef IEnumVMenuSet FAR *LPVISIOIENUMVMENUSET;
  349.  
  350. interface IVMenuSets;
  351. typedef IVMenuSets FAR *LPVISIOMENUSETS;
  352.  
  353. interface IVToolbarItem;
  354. typedef IVToolbarItem FAR *LPVISIOTOOLBARITEM;
  355.  
  356. interface IEnumVToolbarItem;
  357. typedef IEnumVToolbarItem FAR *LPVISIOIENUMVTOOLBARITEM;
  358.  
  359. interface IVToolbarItems;
  360. typedef IVToolbarItems FAR *LPVISIOTOOLBARITEMS;
  361.  
  362. interface IVToolbar;
  363. typedef IVToolbar FAR *LPVISIOTOOLBAR;
  364.  
  365. interface IEnumVToolbar;
  366. typedef IEnumVToolbar FAR *LPVISIOIENUMVTOOLBAR;
  367.  
  368. interface IVToolbars;
  369. typedef IVToolbars FAR *LPVISIOTOOLBARS;
  370.  
  371. interface IVToolbarSet;
  372. typedef IVToolbarSet FAR *LPVISIOTOOLBARSET;
  373.  
  374. interface IEnumVToolbarSet;
  375. typedef IEnumVToolbarSet FAR *LPVISIOIENUMVTOOLBARSET;
  376.  
  377. interface IVToolbarSets;
  378. typedef IVToolbarSets FAR *LPVISIOTOOLBARSETS;
  379.  
  380. interface IVStatusBarItem;
  381. typedef IVStatusBarItem FAR *LPVISIOSTATUSBARITEM;
  382.  
  383. interface IEnumVStatusBarItem;
  384. typedef IEnumVStatusBarItem FAR *LPVISIOIENUMVSTATUSBARITEM;
  385.  
  386. interface IVStatusBarItems;
  387. typedef IVStatusBarItems FAR *LPVISIOSTATUSBARITEMS;
  388.  
  389. interface IVStatusBar;
  390. typedef IVStatusBar FAR *LPVISIOSTATUSBAR;
  391.  
  392. interface IEnumVStatusBar;
  393. typedef IEnumVStatusBar FAR *LPVISIOIENUMVSTATUSBAR;
  394.  
  395. interface IVStatusBars;
  396. typedef IVStatusBars FAR *LPVISIOSTATUSBARS;
  397.  
  398. interface IVAccelItem;
  399. typedef IVAccelItem FAR *LPVISIOACCELITEM;
  400.  
  401. interface IEnumVAccelItem;
  402. typedef IEnumVAccelItem FAR *LPVISIOIENUMVACCELITEM;
  403.  
  404. interface IVAccelItems;
  405. typedef IVAccelItems FAR *LPVISIOACCELITEMS;
  406.  
  407. interface IVAccelTable;
  408. typedef IVAccelTable FAR *LPVISIOACCELTABLE;
  409.  
  410. interface IEnumVAccelTable;
  411. typedef IEnumVAccelTable FAR *LPVISIOIENUMVACCELTABLE;
  412.  
  413. interface IVAccelTables;
  414. typedef IVAccelTables FAR *LPVISIOACCELTABLES;
  415.  
  416. interface IVUIObject;
  417. typedef IVUIObject FAR *LPVISIOUIOBJECT;
  418.  
  419. interface IVHyperlink;
  420. typedef IVHyperlink FAR *LPVISIOHYPERLINK;
  421.  
  422. interface IVOLEObjects;
  423. typedef IVOLEObjects FAR *LPVISIOOLEOBJECTS;
  424.  
  425. interface IVOLEObject;
  426. typedef IVOLEObject FAR *LPVISIOOLEOBJECT;
  427.  
  428. interface IVPaths;
  429. typedef IVPaths FAR *LPVISIOPATHS;
  430.  
  431. interface IVPath;
  432. typedef IVPath FAR *LPVISIOPATH;
  433.  
  434. interface IVCurve;
  435. typedef IVCurve FAR *LPVISIOCURVE;
  436.  
  437. interface IVExtender;
  438. typedef IVExtender FAR *LPVISIOEXTENDER;
  439.  
  440. interface IVDispExtender;
  441. typedef IVDispExtender FAR *LPVISIODISPEXTENDER;
  442.  
  443. interface IVAmbients;
  444. typedef IVAmbients FAR *LPVISIOAMBIENTS;
  445.  
  446. #endif  //  VISIO_LPS_FORWARD_DECLARED
  447.  
  448.  
  449. //  ***************************************************************************
  450. //  Root class declaration
  451.  
  452. //  If VW_ROOT_CLASS is defined, use it as the parent class of CVisioUnknown
  453.  
  454. #ifdef VW_ROOT_CLASS
  455. class FAR CVisioUnknown : public VW_ROOT_CLASS
  456. #else
  457. class FAR CVisioUnknown
  458. #endif  //  VW_ROOT_CLASS
  459. {
  460. VW_PUBLIC:
  461.     CVisioUnknown() { m_pUnk= NULL; }
  462.  
  463.     CVisioUnknown(const CVisioUnknown FAR &other)
  464.         {
  465.         m_pUnk= NULL;
  466.         CopyIP(other.GetUnknown());
  467.         }
  468.  
  469.     CVisioUnknown(LPUNKNOWN lpIUnk, BOOL bAssumeResponsibility= FALSE)
  470.         {
  471.         if (bAssumeResponsibility)
  472.             {
  473.             //    Caller hereby transfers ownership of his refcount
  474.             //    to this instance of the wrapper class. Caller must
  475.             //    NOT release lpIUnk.
  476.             m_pUnk= lpIUnk;
  477.             }
  478.         else
  479.             {
  480.             //    Caller wants us to AddRef; caller MUST release lpIUnk.
  481.             m_pUnk= NULL;
  482.             CopyIP(lpIUnk);
  483.             }
  484.         }
  485.  
  486.     const CVisioUnknown FAR & operator=(const CVisioUnknown FAR &other)
  487.         {
  488.         if ( &other != this )
  489.             CopyIP(other.GetUnknown());
  490.  
  491.         return *this;
  492.         }
  493.  
  494.     const CVisioUnknown FAR & operator=(const LPUNKNOWN other)
  495.         {
  496.         if ( other != GetUnknown() )
  497.             CopyIP(other);
  498.  
  499.         return *this;
  500.         }
  501.  
  502.     virtual ~CVisioUnknown() { ReleaseIP(); }
  503.  
  504.     virtual BOOL IsSet() const { return ((NULL == GetUnknown()) ? FALSE : TRUE); }
  505.  
  506.     virtual UINT RefCount() const
  507.         {
  508.         UINT uc= 0xFFFFFFAA;    //  probably means m_pUnk==NULL
  509.         if (NULL!=m_pUnk)
  510.             {
  511.             m_pUnk->AddRef();
  512.             uc= m_pUnk->Release();
  513.             }
  514.         return uc;
  515.         }
  516.  
  517.     virtual HRESULT QueryInterfaceIP(REFIID riid, void FAR * FAR * ppvObj)
  518.         {
  519.         //  If successful, callers MUST call (*(LPUNKNOWN *)ppvObj)->Release()
  520.         //  This is merely a wrapper around the real QueryInterface.
  521.         HRESULT hr= VW_INTERFACE_NOT_SET;
  522.         CHECK_IP(m_pUnk, CVisioUnknown, QueryInterfaceIP);
  523.         if (NULL!=m_pUnk)
  524.             hr= m_pUnk->QueryInterface(riid, ppvObj);
  525.         CHECK_HRESULT(hr, CVisioUnknown, QueryInterfaceIP);
  526.         return hr;
  527.         }
  528.  
  529. VW_PROTECTED:
  530.     virtual void AddRefIP()
  531.         {
  532.         if ( NULL != m_pUnk )
  533.             m_pUnk->AddRef();
  534.         }
  535.  
  536.     virtual void ReleaseIP()
  537.         {
  538.         if ( NULL != m_pUnk )
  539.             {
  540.             m_pUnk->Release();
  541.             m_pUnk = NULL;
  542.             }
  543.         }
  544.  
  545.     virtual void CopyIP(LPUNKNOWN pUnk)
  546.         {
  547.         if (m_pUnk!=pUnk)
  548.             {
  549.             ReleaseIP();
  550.             m_pUnk = pUnk;
  551.             AddRefIP();
  552.             }
  553.         }
  554.  
  555.     LPUNKNOWN GetUnknown() const
  556.         {
  557.         //  NO AddRef; Callers DO NOT Release!
  558.         return m_pUnk;
  559.         }
  560.  
  561. VW_PRIVATE:
  562.     LPUNKNOWN m_pUnk;
  563. };
  564.  
  565.  
  566. //  ***************************************************************************
  567. //  TypeLib Interface class declarations
  568.  
  569.  
  570. //  ***************************************************************************
  571. //  Declaration of class CVisioApplication
  572.  
  573. class FAR CVisioApplication : public CVisioUnknown
  574. {
  575. VW_PUBLIC:
  576.     CVisioApplication()
  577.         : CVisioUnknown() { }
  578.  
  579.     CVisioApplication(const CVisioApplication& other)
  580.         : CVisioUnknown(other) { }
  581.  
  582.     CVisioApplication(const IVApplication FAR * other, BOOL bAssumeResponsibility= FALSE)
  583.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  584.  
  585.     const CVisioApplication FAR & operator=(const CVisioApplication FAR &other)
  586.         {
  587.         if ( &other != this )
  588.             CopyIP(other.GetUnknown());
  589.  
  590.         return *this;
  591.         }
  592.  
  593.     const CVisioApplication FAR & operator=(const IVApplication FAR * other)
  594.         {
  595.         if ( (LPUNKNOWN)other != GetUnknown() )
  596.             CopyIP((LPUNKNOWN)other);
  597.  
  598.         return *this;
  599.         }
  600.  
  601.     virtual ~CVisioApplication() { }
  602.  
  603.     IVApplication FAR * GetIP() const { return (IVApplication FAR *) GetUnknown(); }
  604.  
  605.     operator IVApplication FAR * () { return (IVApplication FAR *) GetUnknown(); }
  606.  
  607. VW_PUBLIC:
  608.     CVisioDocument FAR ActiveDocument();
  609.     CVisioPage FAR ActivePage();
  610.     CVisioWindow FAR ActiveWindow();
  611.     CVisioApplication FAR Application();
  612.     CVisioDocuments FAR Documents();
  613.     short ObjectType();
  614.     long getOnDataChangeDelay();
  615.     void putOnDataChangeDelay(VW_CONST long param01);
  616.     long ProcessID();
  617.     void Quit();
  618.     void Redo();
  619.     short getScreenUpdating();
  620.     void putScreenUpdating(VW_CONST short param01);
  621.     short Stat();
  622.     void Undo();
  623.     BSTR_HELPER_CLASS FAR Version();
  624.     short WindowHandle();
  625.     CVisioWindows FAR Windows();
  626.     long Language();
  627.     short IsVisio16();
  628.     short IsVisio32();
  629.     long WindowHandle32();
  630.     short InstanceHandle();
  631.     long InstanceHandle32();
  632.     CVisioUIObject FAR BuiltInMenus();
  633.     CVisioUIObject FAR BuiltInToolbars(short fIgnored);
  634.     CVisioUIObject FAR CustomMenus();
  635.     void SetCustomMenus(CVisioUIObject FAR &MenusObject);
  636.     BSTR_HELPER_CLASS FAR getCustomMenusFile();
  637.     void putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  638.     void ClearCustomMenus();
  639.     CVisioUIObject FAR CustomToolbars();
  640.     void SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject);
  641.     BSTR_HELPER_CLASS FAR getCustomToolbarsFile();
  642.     void putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  643.     void ClearCustomToolbars();
  644.     BSTR_HELPER_CLASS FAR getAddonPaths();
  645.     void putAddonPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  646.     BSTR_HELPER_CLASS FAR getDrawingPaths();
  647.     void putDrawingPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  648.     BSTR_HELPER_CLASS FAR getFilterPaths();
  649.     void putFilterPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  650.     BSTR_HELPER_CLASS FAR getHelpPaths();
  651.     void putHelpPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  652.     BSTR_HELPER_CLASS FAR getStartupPaths();
  653.     void putStartupPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  654.     BSTR_HELPER_CLASS FAR getStencilPaths();
  655.     void putStencilPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  656.     BSTR_HELPER_CLASS FAR getTemplatePaths();
  657.     void putTemplatePaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  658.     BSTR_HELPER_CLASS FAR getUserName();
  659.     void putUserName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  660.     short getPromptForSummary();
  661.     void putPromptForSummary(VW_CONST short param01);
  662.     CVisioAddons FAR Addons();
  663.     void SaveWorkspaceAs(BSTR_HELPER_CLASS FAR &FileName);
  664.     void DoCmd(short CommandID);
  665.     BSTR_HELPER_CLASS FAR ProfileName();
  666.     BSTR_HELPER_CLASS FAR EventInfo(long reservedPass0);
  667.     CVisioEventList FAR EventList();
  668.     short PersistsEvents();
  669.     short Active();
  670.     short getDeferRecalc();
  671.     void putDeferRecalc(VW_CONST short param01);
  672.     short getAlertResponse();
  673.     void putAlertResponse(VW_CONST short param01);
  674.     short getShowProgress();
  675.     void putShowProgress(VW_CONST short param01);
  676.     IDispatch FAR *Vbe();
  677.     short getShowMenus();
  678.     void putShowMenus(VW_CONST short param01);
  679.     short getToolbarStyle();
  680.     void putToolbarStyle(VW_CONST short param01);
  681.     short getShowStatusBar();
  682.     void putShowStatusBar(VW_CONST short param01);
  683.     short getEventsEnabled();
  684.     void putEventsEnabled(VW_CONST short param01);
  685.     BSTR_HELPER_CLASS FAR FormatResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut, BSTR_HELPER_CLASS FAR &Format);
  686.     double ConvertResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut);
  687.     BSTR_HELPER_CLASS FAR Path();
  688.     void EnumDirectories(BSTR_HELPER_CLASS FAR &PathsString, /*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  689.     long getTraceFlags();
  690.     void putTraceFlags(VW_CONST long param01);
  691.     void PurgeUndo();
  692.     long QueueMarkerEvent(BSTR_HELPER_CLASS FAR &ContextString);
  693.     short getShowToolbar();
  694.     void putShowToolbar(VW_CONST short param01);
  695. };
  696.  
  697.  
  698. //  ***************************************************************************
  699. //  Declaration of class CVisioCell
  700.  
  701. class FAR CVisioCell : public CVisioUnknown
  702. {
  703. VW_PUBLIC:
  704.     CVisioCell()
  705.         : CVisioUnknown() { }
  706.  
  707.     CVisioCell(const CVisioCell& other)
  708.         : CVisioUnknown(other) { }
  709.  
  710.     CVisioCell(const IVCell FAR * other, BOOL bAssumeResponsibility= FALSE)
  711.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  712.  
  713.     const CVisioCell FAR & operator=(const CVisioCell FAR &other)
  714.         {
  715.         if ( &other != this )
  716.             CopyIP(other.GetUnknown());
  717.  
  718.         return *this;
  719.         }
  720.  
  721.     const CVisioCell FAR & operator=(const IVCell FAR * other)
  722.         {
  723.         if ( (LPUNKNOWN)other != GetUnknown() )
  724.             CopyIP((LPUNKNOWN)other);
  725.  
  726.         return *this;
  727.         }
  728.  
  729.     virtual ~CVisioCell() { }
  730.  
  731.     IVCell FAR * GetIP() const { return (IVCell FAR *) GetUnknown(); }
  732.  
  733.     operator IVCell FAR * () { return (IVCell FAR *) GetUnknown(); }
  734.  
  735. VW_PUBLIC:
  736.     CVisioApplication FAR Application();
  737.     short ObjectType();
  738.     short Error();
  739.     BSTR_HELPER_CLASS FAR getFormula();
  740.     void putFormula(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  741.     void FormulaForce(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  742.     void GlueTo(CVisioCell FAR &CellObject);
  743.     void GlueToPos(CVisioShape FAR &SheetObject, double xPercent, double yPercent);
  744.     double getResult(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  745.     void putResult(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  746.     void ResultForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  747.     double getResultIU();
  748.     void putResultIU(VW_CONST double param01);
  749.     void ResultIUForce(VW_CONST double param01);
  750.     short Stat();
  751.     short Units();
  752.     BSTR_HELPER_CLASS FAR Name();
  753.     BSTR_HELPER_CLASS FAR LocalName();
  754.     void putRowName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  755.     CVisioDocument FAR Document();
  756.     CVisioShape FAR Shape();
  757.     CVisioStyle FAR Style();
  758.     short Section();
  759.     short Row();
  760.     short Column();
  761.     short IsConstant();
  762.     short IsInherited();
  763.     long ResultInt(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, short fRound);
  764.     void ResultFromInt(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02);
  765.     void ResultFromIntForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02);
  766.     BSTR_HELPER_CLASS FAR ResultStr(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  767.     void Trigger();
  768.     BSTR_HELPER_CLASS FAR getRowName();
  769.     CVisioEventList FAR EventList();
  770.     short PersistsEvents();
  771. };
  772.  
  773.  
  774. //  ***************************************************************************
  775. //  Declaration of class CVisioCharacters
  776.  
  777. class FAR CVisioCharacters : public CVisioUnknown
  778. {
  779. VW_PUBLIC:
  780.     CVisioCharacters()
  781.         : CVisioUnknown() { }
  782.  
  783.     CVisioCharacters(const CVisioCharacters& other)
  784.         : CVisioUnknown(other) { }
  785.  
  786.     CVisioCharacters(const IVCharacters FAR * other, BOOL bAssumeResponsibility= FALSE)
  787.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  788.  
  789.     const CVisioCharacters FAR & operator=(const CVisioCharacters FAR &other)
  790.         {
  791.         if ( &other != this )
  792.             CopyIP(other.GetUnknown());
  793.  
  794.         return *this;
  795.         }
  796.  
  797.     const CVisioCharacters FAR & operator=(const IVCharacters FAR * other)
  798.         {
  799.         if ( (LPUNKNOWN)other != GetUnknown() )
  800.             CopyIP((LPUNKNOWN)other);
  801.  
  802.         return *this;
  803.         }
  804.  
  805.     virtual ~CVisioCharacters() { }
  806.  
  807.     IVCharacters FAR * GetIP() const { return (IVCharacters FAR *) GetUnknown(); }
  808.  
  809.     operator IVCharacters FAR * () { return (IVCharacters FAR *) GetUnknown(); }
  810.  
  811. VW_PUBLIC:
  812.     void AddCustomField(BSTR_HELPER_CLASS FAR &Formula, short Format);
  813.     void AddField(short Category, short Code, short Format);
  814.     CVisioApplication FAR Application();
  815.     long getBegin();
  816.     void putBegin(VW_CONST long param01);
  817.     long CharCount();
  818.     void CharProps(VW_CONST short CellIndex, VW_CONST short param02);
  819.     short CharPropsRow(short BiasLorR);
  820.     void Copy();
  821.     void Cut();
  822.     short ObjectType();
  823.     long getEnd();
  824.     void putEnd(VW_CONST long param01);
  825.     short FieldCategory();
  826.     short FieldCode();
  827.     short FieldFormat();
  828.     BSTR_HELPER_CLASS FAR FieldFormula();
  829.     short IsField();
  830.     void ParaProps(VW_CONST short CellIndex, VW_CONST short param02);
  831.     short ParaPropsRow(short BiasLorR);
  832.     void Paste();
  833.     short TabPropsRow(short BiasLorR);
  834.     long RunBegin(short RunType);
  835.     long RunEnd(short RunType);
  836.     CVisioShape FAR Shape();
  837.     short Stat();
  838.     BSTR_HELPER_CLASS FAR TextAsString();
  839.     void putText(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01);
  840.     CVisioDocument FAR Document();
  841.     CVisioEventList FAR EventList();
  842.     short PersistsEvents();
  843.     VARIANT_HELPER_CLASS FAR getText();
  844. };
  845.  
  846.  
  847. //  ***************************************************************************
  848. //  Declaration of class CVisioConnect
  849.  
  850. class FAR CVisioConnect : public CVisioUnknown
  851. {
  852. VW_PUBLIC:
  853.     CVisioConnect()
  854.         : CVisioUnknown() { }
  855.  
  856.     CVisioConnect(const CVisioConnect& other)
  857.         : CVisioUnknown(other) { }
  858.  
  859.     CVisioConnect(const IVConnect FAR * other, BOOL bAssumeResponsibility= FALSE)
  860.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  861.  
  862.     const CVisioConnect FAR & operator=(const CVisioConnect FAR &other)
  863.         {
  864.         if ( &other != this )
  865.             CopyIP(other.GetUnknown());
  866.  
  867.         return *this;
  868.         }
  869.  
  870.     const CVisioConnect FAR & operator=(const IVConnect FAR * other)
  871.         {
  872.         if ( (LPUNKNOWN)other != GetUnknown() )
  873.             CopyIP((LPUNKNOWN)other);
  874.  
  875.         return *this;
  876.         }
  877.  
  878.     virtual ~CVisioConnect() { }
  879.  
  880.     IVConnect FAR * GetIP() const { return (IVConnect FAR *) GetUnknown(); }
  881.  
  882.     operator IVConnect FAR * () { return (IVConnect FAR *) GetUnknown(); }
  883.  
  884. VW_PUBLIC:
  885.     CVisioApplication FAR Application();
  886.     short Stat();
  887.     CVisioShape FAR FromSheet();
  888.     CVisioShape FAR ToSheet();
  889.     CVisioCell FAR FromCell();
  890.     CVisioCell FAR ToCell();
  891.     short FromPart();
  892.     short ToPart();
  893.     short ObjectType();
  894.     short Index();
  895.     CVisioDocument FAR Document();
  896. };
  897.  
  898.  
  899. //  ***************************************************************************
  900. //  Declaration of class CVisioConnects
  901.  
  902. class FAR CVisioConnects : public CVisioUnknown
  903. {
  904. VW_PUBLIC:
  905.     CVisioConnects()
  906.         : CVisioUnknown() { }
  907.  
  908.     CVisioConnects(const CVisioConnects& other)
  909.         : CVisioUnknown(other) { }
  910.  
  911.     CVisioConnects(const IVConnects FAR * other, BOOL bAssumeResponsibility= FALSE)
  912.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  913.  
  914.     const CVisioConnects FAR & operator=(const CVisioConnects FAR &other)
  915.         {
  916.         if ( &other != this )
  917.             CopyIP(other.GetUnknown());
  918.  
  919.         return *this;
  920.         }
  921.  
  922.     const CVisioConnects FAR & operator=(const IVConnects FAR * other)
  923.         {
  924.         if ( (LPUNKNOWN)other != GetUnknown() )
  925.             CopyIP((LPUNKNOWN)other);
  926.  
  927.         return *this;
  928.         }
  929.  
  930.     virtual ~CVisioConnects() { }
  931.  
  932.     IVConnects FAR * GetIP() const { return (IVConnects FAR *) GetUnknown(); }
  933.  
  934.     operator IVConnects FAR * () { return (IVConnects FAR *) GetUnknown(); }
  935.  
  936. VW_PUBLIC:
  937.     CVisioApplication FAR Application();
  938.     CVisioConnect FAR Item(short Index);
  939.     short Count();
  940.     CVisioShape FAR FromSheet();
  941.     short ObjectType();
  942.     CVisioDocument FAR Document();
  943.     short Stat();
  944.     CVisioShape FAR ToSheet();
  945. };
  946.  
  947.  
  948. //  ***************************************************************************
  949. //  Declaration of class CVisioDocument
  950.  
  951. class FAR CVisioDocument : public CVisioUnknown
  952. {
  953. VW_PUBLIC:
  954.     CVisioDocument()
  955.         : CVisioUnknown() { }
  956.  
  957.     CVisioDocument(const CVisioDocument& other)
  958.         : CVisioUnknown(other) { }
  959.  
  960.     CVisioDocument(const IVDocument FAR * other, BOOL bAssumeResponsibility= FALSE)
  961.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  962.  
  963.     const CVisioDocument FAR & operator=(const CVisioDocument FAR &other)
  964.         {
  965.         if ( &other != this )
  966.             CopyIP(other.GetUnknown());
  967.  
  968.         return *this;
  969.         }
  970.  
  971.     const CVisioDocument FAR & operator=(const IVDocument FAR * other)
  972.         {
  973.         if ( (LPUNKNOWN)other != GetUnknown() )
  974.             CopyIP((LPUNKNOWN)other);
  975.  
  976.         return *this;
  977.         }
  978.  
  979.     virtual ~CVisioDocument() { }
  980.  
  981.     IVDocument FAR * GetIP() const { return (IVDocument FAR *) GetUnknown(); }
  982.  
  983.     operator IVDocument FAR * () { return (IVDocument FAR *) GetUnknown(); }
  984.  
  985. VW_PUBLIC:
  986.     CVisioApplication FAR Application();
  987.     short Stat();
  988.     short ObjectType();
  989.     short InPlace();
  990.     CVisioMasters FAR Masters();
  991.     CVisioPages FAR Pages();
  992.     CVisioStyles FAR Styles();
  993.     BSTR_HELPER_CLASS FAR Name();
  994.     BSTR_HELPER_CLASS FAR Path();
  995.     BSTR_HELPER_CLASS FAR FullName();
  996.     CVisioMaster FAR Drop(IUnknown FAR *ObjectToDrop, short xPos, short yPos);
  997.     short Index();
  998.     short getSaved();
  999.     void putSaved(VW_CONST short param01);
  1000.     short ReadOnly();
  1001.     short Save();
  1002.     short SaveAs(BSTR_HELPER_CLASS FAR &FileName);
  1003.     long getVersion();
  1004.     void putVersion(VW_CONST long param01);
  1005.     BSTR_HELPER_CLASS FAR getTitle();
  1006.     void putTitle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1007.     BSTR_HELPER_CLASS FAR getSubject();
  1008.     void putSubject(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1009.     BSTR_HELPER_CLASS FAR getCreator();
  1010.     void putCreator(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1011.     BSTR_HELPER_CLASS FAR getKeywords();
  1012.     void putKeywords(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1013.     BSTR_HELPER_CLASS FAR getDescription();
  1014.     void putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1015.     void Print();
  1016.     void Close();
  1017.     CVisioUIObject FAR CustomMenus();
  1018.     void SetCustomMenus(CVisioUIObject FAR &MenusObject);
  1019.     BSTR_HELPER_CLASS FAR getCustomMenusFile();
  1020.     void putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1021.     void ClearCustomMenus();
  1022.     CVisioUIObject FAR CustomToolbars();
  1023.     void SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject);
  1024.     BSTR_HELPER_CLASS FAR getCustomToolbarsFile();
  1025.     void putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1026.     void ClearCustomToolbars();
  1027.     CVisioFonts FAR Fonts();
  1028.     CVisioColors FAR Colors();
  1029.     CVisioEventList FAR EventList();
  1030.     BSTR_HELPER_CLASS FAR Template();
  1031.     void SaveAsEx(BSTR_HELPER_CLASS FAR &FileName, short SaveFlags);
  1032.     short getSavePreviewMode();
  1033.     void putSavePreviewMode(VW_CONST short param01);
  1034.     void GetIcon(short ID, BSTR_HELPER_CLASS FAR &FileName);
  1035.     void SetIcon(short ID, short Index, BSTR_HELPER_CLASS FAR &FileName);
  1036.     double getLeftMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  1037.     void putLeftMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1038.     double getRightMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  1039.     void putRightMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1040.     double getTopMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  1041.     void putTopMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1042.     double getBottomMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  1043.     void putBottomMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02);
  1044.     short getPrintLandscape();
  1045.     void putPrintLandscape(VW_CONST short param01);
  1046.     short getPrintCenteredH();
  1047.     void putPrintCenteredH(VW_CONST short param01);
  1048.     short getPrintCenteredV();
  1049.     void putPrintCenteredV(VW_CONST short param01);
  1050.     double getPrintScale();
  1051.     void putPrintScale(VW_CONST double param01);
  1052.     short getPrintFitOnPages();
  1053.     void putPrintFitOnPages(VW_CONST short param01);
  1054.     short getPrintPagesAcross();
  1055.     void putPrintPagesAcross(VW_CONST short param01);
  1056.     short getPrintPagesDown();
  1057.     void putPrintPagesDown(VW_CONST short param01);
  1058.     BSTR_HELPER_CLASS FAR getDefaultStyle();
  1059.     void putDefaultStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1060.     BSTR_HELPER_CLASS FAR getDefaultLineStyle();
  1061.     void putDefaultLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1062.     BSTR_HELPER_CLASS FAR getDefaultFillStyle();
  1063.     void putDefaultFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1064.     BSTR_HELPER_CLASS FAR getDefaultTextStyle();
  1065.     void putDefaultTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1066.     short PersistsEvents();
  1067.     CVisioWindow FAR OpenStencilWindow();
  1068.     void ParseLine(BSTR_HELPER_CLASS FAR &Line);
  1069.     void ExecuteLine(BSTR_HELPER_CLASS FAR &Line);
  1070.     IDispatch FAR *VBProject();
  1071.     double PaperWidth(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  1072.     double PaperHeight(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode);
  1073.     short getPaperSize();
  1074.     void putPaperSize(VW_CONST short param01);
  1075.     void FollowHyperlink45(BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &Location);
  1076.     BSTR_HELPER_CLASS FAR CodeName();
  1077.     short getMode();
  1078.     void putMode(VW_CONST short param01);
  1079.     CVisioOLEObjects FAR OLEObjects();
  1080.     void FollowHyperlink(BSTR_HELPER_CLASS FAR &Address, BSTR_HELPER_CLASS FAR &SubAddress, VARIANT_HELPER_CLASS FAR &ExtraInfo, VARIANT_HELPER_CLASS FAR &Frame, VARIANT_HELPER_CLASS FAR &NewWindow, VARIANT_HELPER_CLASS FAR &res1, VARIANT_HELPER_CLASS FAR &res2, VARIANT_HELPER_CLASS FAR &res3);
  1081.     BSTR_HELPER_CLASS FAR getManager();
  1082.     void putManager(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1083.     BSTR_HELPER_CLASS FAR getCompany();
  1084.     void putCompany(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1085.     BSTR_HELPER_CLASS FAR getCategory();
  1086.     void putCategory(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1087.     BSTR_HELPER_CLASS FAR getHyperlinkBase();
  1088.     void putHyperlinkBase(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1089. };
  1090.  
  1091.  
  1092. //  ***************************************************************************
  1093. //  Declaration of class CVisioDocuments
  1094.  
  1095. class FAR CVisioDocuments : public CVisioUnknown
  1096. {
  1097. VW_PUBLIC:
  1098.     CVisioDocuments()
  1099.         : CVisioUnknown() { }
  1100.  
  1101.     CVisioDocuments(const CVisioDocuments& other)
  1102.         : CVisioUnknown(other) { }
  1103.  
  1104.     CVisioDocuments(const IVDocuments FAR * other, BOOL bAssumeResponsibility= FALSE)
  1105.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1106.  
  1107.     const CVisioDocuments FAR & operator=(const CVisioDocuments FAR &other)
  1108.         {
  1109.         if ( &other != this )
  1110.             CopyIP(other.GetUnknown());
  1111.  
  1112.         return *this;
  1113.         }
  1114.  
  1115.     const CVisioDocuments FAR & operator=(const IVDocuments FAR * other)
  1116.         {
  1117.         if ( (LPUNKNOWN)other != GetUnknown() )
  1118.             CopyIP((LPUNKNOWN)other);
  1119.  
  1120.         return *this;
  1121.         }
  1122.  
  1123.     virtual ~CVisioDocuments() { }
  1124.  
  1125.     IVDocuments FAR * GetIP() const { return (IVDocuments FAR *) GetUnknown(); }
  1126.  
  1127.     operator IVDocuments FAR * () { return (IVDocuments FAR *) GetUnknown(); }
  1128.  
  1129. VW_PUBLIC:
  1130.     CVisioDocument FAR Add(BSTR_HELPER_CLASS FAR &FileName);
  1131.     CVisioDocument FAR Open(BSTR_HELPER_CLASS FAR &FileName);
  1132.     CVisioApplication FAR Application();
  1133.     short ObjectType();
  1134.     CVisioDocument FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  1135.     short Count();
  1136.     CVisioDocument FAR OpenEx(BSTR_HELPER_CLASS FAR &FileName, short Flags);
  1137.     CVisioEventList FAR EventList();
  1138.     short PersistsEvents();
  1139.     void GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1140. };
  1141.  
  1142.  
  1143. //  ***************************************************************************
  1144. //  Declaration of class CVisioMaster
  1145.  
  1146. class FAR CVisioMaster : public CVisioUnknown
  1147. {
  1148. VW_PUBLIC:
  1149.     CVisioMaster()
  1150.         : CVisioUnknown() { }
  1151.  
  1152.     CVisioMaster(const CVisioMaster& other)
  1153.         : CVisioUnknown(other) { }
  1154.  
  1155.     CVisioMaster(const IVMaster FAR * other, BOOL bAssumeResponsibility= FALSE)
  1156.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1157.  
  1158.     const CVisioMaster FAR & operator=(const CVisioMaster FAR &other)
  1159.         {
  1160.         if ( &other != this )
  1161.             CopyIP(other.GetUnknown());
  1162.  
  1163.         return *this;
  1164.         }
  1165.  
  1166.     const CVisioMaster FAR & operator=(const IVMaster FAR * other)
  1167.         {
  1168.         if ( (LPUNKNOWN)other != GetUnknown() )
  1169.             CopyIP((LPUNKNOWN)other);
  1170.  
  1171.         return *this;
  1172.         }
  1173.  
  1174.     virtual ~CVisioMaster() { }
  1175.  
  1176.     IVMaster FAR * GetIP() const { return (IVMaster FAR *) GetUnknown(); }
  1177.  
  1178.     operator IVMaster FAR * () { return (IVMaster FAR *) GetUnknown(); }
  1179.  
  1180. VW_PUBLIC:
  1181.     CVisioDocument FAR Document();
  1182.     BSTR_HELPER_CLASS FAR getPrompt();
  1183.     void putPrompt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1184.     short getAlignName();
  1185.     void putAlignName(VW_CONST short param01);
  1186.     short getIconSize();
  1187.     void putIconSize(VW_CONST short param01);
  1188.     short getIconUpdate();
  1189.     void putIconUpdate(VW_CONST short param01);
  1190.     CVisioApplication FAR Application();
  1191.     short Stat();
  1192.     short ObjectType();
  1193.     BSTR_HELPER_CLASS FAR getName();
  1194.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1195.     CVisioShapes FAR Shapes();
  1196.     short Index();
  1197.     short OneD();
  1198.     void Delete();
  1199.     BSTR_HELPER_CLASS FAR UniqueID();
  1200.     CVisioLayers FAR Layers();
  1201.     CVisioShape FAR PageSheet();
  1202.     CVisioShape FAR Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos);
  1203.     void CenterDrawing();
  1204.     CVisioEventList FAR EventList();
  1205.     short PersistsEvents();
  1206.     CVisioShape FAR DrawLine(double xLeft, double yTop, double xRight, double yBottom);
  1207.     CVisioShape FAR DrawRectangle(double xLeft, double yTop, double xRight, double yBottom);
  1208.     CVisioShape FAR DrawOval(double xLeft, double yTop, double xRight, double yBottom);
  1209.     CVisioShape FAR DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags);
  1210.     CVisioShape FAR DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags);
  1211.     CVisioShape FAR DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags);
  1212.     CVisioShape FAR Import(BSTR_HELPER_CLASS FAR &FileName);
  1213.     void Export(BSTR_HELPER_CLASS FAR &FileName);
  1214.     CVisioShape FAR InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags);
  1215.     CVisioShape FAR InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags);
  1216.     CVisioWindow FAR OpenDrawWindow();
  1217.     CVisioWindow FAR OpenIconWindow();
  1218.     CVisioMaster FAR Open();
  1219.     void Close();
  1220.     short DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray);
  1221.     void GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1222.     void GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1223.     short SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags);
  1224.     short SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags);
  1225.     CVisioConnects FAR Connects();
  1226.     void ImportIcon(BSTR_HELPER_CLASS FAR &FileName);
  1227.     void ExportIcon(BSTR_HELPER_CLASS FAR &FileName, short Flags);
  1228.     void Layout();
  1229.     void BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1230.     short ID();
  1231.     CVisioOLEObjects FAR OLEObjects();
  1232.     short getPatternFlags();
  1233.     void putPatternFlags(VW_CONST short param01);
  1234.     short getMatchByName();
  1235.     void putMatchByName(VW_CONST short param01);
  1236. };
  1237.  
  1238.  
  1239. //  ***************************************************************************
  1240. //  Declaration of class CVisioMasters
  1241.  
  1242. class FAR CVisioMasters : public CVisioUnknown
  1243. {
  1244. VW_PUBLIC:
  1245.     CVisioMasters()
  1246.         : CVisioUnknown() { }
  1247.  
  1248.     CVisioMasters(const CVisioMasters& other)
  1249.         : CVisioUnknown(other) { }
  1250.  
  1251.     CVisioMasters(const IVMasters FAR * other, BOOL bAssumeResponsibility= FALSE)
  1252.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1253.  
  1254.     const CVisioMasters FAR & operator=(const CVisioMasters FAR &other)
  1255.         {
  1256.         if ( &other != this )
  1257.             CopyIP(other.GetUnknown());
  1258.  
  1259.         return *this;
  1260.         }
  1261.  
  1262.     const CVisioMasters FAR & operator=(const IVMasters FAR * other)
  1263.         {
  1264.         if ( (LPUNKNOWN)other != GetUnknown() )
  1265.             CopyIP((LPUNKNOWN)other);
  1266.  
  1267.         return *this;
  1268.         }
  1269.  
  1270.     virtual ~CVisioMasters() { }
  1271.  
  1272.     IVMasters FAR * GetIP() const { return (IVMasters FAR *) GetUnknown(); }
  1273.  
  1274.     operator IVMasters FAR * () { return (IVMasters FAR *) GetUnknown(); }
  1275.  
  1276. VW_PUBLIC:
  1277.     CVisioApplication FAR Application();
  1278.     short ObjectType();
  1279.     CVisioMaster FAR Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex);
  1280.     short Count();
  1281.     CVisioDocument FAR Document();
  1282.     short Stat();
  1283.     CVisioEventList FAR EventList();
  1284.     short PersistsEvents();
  1285.     CVisioMaster FAR Add();
  1286.     void GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1287. };
  1288.  
  1289.  
  1290. //  ***************************************************************************
  1291. //  Declaration of class CVisioPage
  1292.  
  1293. class FAR CVisioPage : public CVisioUnknown
  1294. {
  1295. VW_PUBLIC:
  1296.     CVisioPage()
  1297.         : CVisioUnknown() { }
  1298.  
  1299.     CVisioPage(const CVisioPage& other)
  1300.         : CVisioUnknown(other) { }
  1301.  
  1302.     CVisioPage(const IVPage FAR * other, BOOL bAssumeResponsibility= FALSE)
  1303.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1304.  
  1305.     const CVisioPage FAR & operator=(const CVisioPage FAR &other)
  1306.         {
  1307.         if ( &other != this )
  1308.             CopyIP(other.GetUnknown());
  1309.  
  1310.         return *this;
  1311.         }
  1312.  
  1313.     const CVisioPage FAR & operator=(const IVPage FAR * other)
  1314.         {
  1315.         if ( (LPUNKNOWN)other != GetUnknown() )
  1316.             CopyIP((LPUNKNOWN)other);
  1317.  
  1318.         return *this;
  1319.         }
  1320.  
  1321.     virtual ~CVisioPage() { }
  1322.  
  1323.     IVPage FAR * GetIP() const { return (IVPage FAR *) GetUnknown(); }
  1324.  
  1325.     operator IVPage FAR * () { return (IVPage FAR *) GetUnknown(); }
  1326.  
  1327. VW_PUBLIC:
  1328.     CVisioDocument FAR Document();
  1329.     CVisioApplication FAR Application();
  1330.     short Stat();
  1331.     short getBackground();
  1332.     void putBackground(VW_CONST short param01);
  1333.     void Paste();
  1334.     void PasteSpecial(short Format);
  1335.     short ObjectType();
  1336.     CVisioShape FAR DrawLine(double xLeft, double yTop, double xRight, double yBottom);
  1337.     CVisioShape FAR DrawRectangle(double xLeft, double yTop, double xRight, double yBottom);
  1338.     CVisioShape FAR DrawOval(double xLeft, double yTop, double xRight, double yBottom);
  1339.     short Index();
  1340.     BSTR_HELPER_CLASS FAR getName();
  1341.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1342.     CVisioShapes FAR Shapes();
  1343.     CVisioShape FAR Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos);
  1344.     CVisioShape FAR AddGuide(short Type, double xPos, double yPos);
  1345.     CVisioPage FAR BackPageAsObj();
  1346.     void BackPageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1347.     void Print();
  1348.     CVisioShape FAR Import(BSTR_HELPER_CLASS FAR &FileName);
  1349.     void Export(BSTR_HELPER_CLASS FAR &FileName);
  1350.     CVisioLayers FAR Layers();
  1351.     CVisioShape FAR PageSheet();
  1352.     void Delete(short fRenumberPages);
  1353.     void CenterDrawing();
  1354.     CVisioEventList FAR EventList();
  1355.     short PersistsEvents();
  1356.     CVisioShape FAR DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags);
  1357.     CVisioShape FAR DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags);
  1358.     CVisioShape FAR DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags);
  1359.     CVisioShape FAR InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags);
  1360.     CVisioShape FAR InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags);
  1361.     CVisioWindow FAR OpenDrawWindow();
  1362.     short DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray);
  1363.     void GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1364.     void GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1365.     short SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags);
  1366.     short SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags);
  1367.     CVisioConnects FAR Connects();
  1368.     VARIANT_HELPER_CLASS FAR getBackPage();
  1369.     void putBackPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01);
  1370.     void Layout();
  1371.     void BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1372.     short ID();
  1373.     CVisioOLEObjects FAR OLEObjects();
  1374. };
  1375.  
  1376.  
  1377. //  ***************************************************************************
  1378. //  Declaration of class CVisioPages
  1379.  
  1380. class FAR CVisioPages : public CVisioUnknown
  1381. {
  1382. VW_PUBLIC:
  1383.     CVisioPages()
  1384.         : CVisioUnknown() { }
  1385.  
  1386.     CVisioPages(const CVisioPages& other)
  1387.         : CVisioUnknown(other) { }
  1388.  
  1389.     CVisioPages(const IVPages FAR * other, BOOL bAssumeResponsibility= FALSE)
  1390.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1391.  
  1392.     const CVisioPages FAR & operator=(const CVisioPages FAR &other)
  1393.         {
  1394.         if ( &other != this )
  1395.             CopyIP(other.GetUnknown());
  1396.  
  1397.         return *this;
  1398.         }
  1399.  
  1400.     const CVisioPages FAR & operator=(const IVPages FAR * other)
  1401.         {
  1402.         if ( (LPUNKNOWN)other != GetUnknown() )
  1403.             CopyIP((LPUNKNOWN)other);
  1404.  
  1405.         return *this;
  1406.         }
  1407.  
  1408.     virtual ~CVisioPages() { }
  1409.  
  1410.     IVPages FAR * GetIP() const { return (IVPages FAR *) GetUnknown(); }
  1411.  
  1412.     operator IVPages FAR * () { return (IVPages FAR *) GetUnknown(); }
  1413.  
  1414. VW_PUBLIC:
  1415.     CVisioApplication FAR Application();
  1416.     short ObjectType();
  1417.     CVisioPage FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  1418.     short Count();
  1419.     CVisioPage FAR Add();
  1420.     CVisioDocument FAR Document();
  1421.     short Stat();
  1422.     CVisioEventList FAR EventList();
  1423.     short PersistsEvents();
  1424.     void GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1425. };
  1426.  
  1427.  
  1428. //  ***************************************************************************
  1429. //  Declaration of class CVisioSelection
  1430.  
  1431. class FAR CVisioSelection : public CVisioUnknown
  1432. {
  1433. VW_PUBLIC:
  1434.     CVisioSelection()
  1435.         : CVisioUnknown() { }
  1436.  
  1437.     CVisioSelection(const CVisioSelection& other)
  1438.         : CVisioUnknown(other) { }
  1439.  
  1440.     CVisioSelection(const IVSelection FAR * other, BOOL bAssumeResponsibility= FALSE)
  1441.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1442.  
  1443.     const CVisioSelection FAR & operator=(const CVisioSelection FAR &other)
  1444.         {
  1445.         if ( &other != this )
  1446.             CopyIP(other.GetUnknown());
  1447.  
  1448.         return *this;
  1449.         }
  1450.  
  1451.     const CVisioSelection FAR & operator=(const IVSelection FAR * other)
  1452.         {
  1453.         if ( (LPUNKNOWN)other != GetUnknown() )
  1454.             CopyIP((LPUNKNOWN)other);
  1455.  
  1456.         return *this;
  1457.         }
  1458.  
  1459.     virtual ~CVisioSelection() { }
  1460.  
  1461.     IVSelection FAR * GetIP() const { return (IVSelection FAR *) GetUnknown(); }
  1462.  
  1463.     operator IVSelection FAR * () { return (IVSelection FAR *) GetUnknown(); }
  1464.  
  1465. VW_PUBLIC:
  1466.     CVisioApplication FAR Application();
  1467.     short Stat();
  1468.     short ObjectType();
  1469.     CVisioShape FAR Item(short Index);
  1470.     short Count();
  1471.     void Export(BSTR_HELPER_CLASS FAR &FileName);
  1472.     CVisioDocument FAR Document();
  1473.     CVisioPage FAR ContainingPage();
  1474.     CVisioMaster FAR ContainingMaster();
  1475.     CVisioShape FAR ContainingShape();
  1476.     void BringForward();
  1477.     void BringToFront();
  1478.     void SendBackward();
  1479.     void SendToBack();
  1480.     BSTR_HELPER_CLASS FAR getStyle();
  1481.     void putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1482.     void StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1483.     BSTR_HELPER_CLASS FAR getLineStyle();
  1484.     void putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1485.     void LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1486.     BSTR_HELPER_CLASS FAR getFillStyle();
  1487.     void putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1488.     void FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1489.     BSTR_HELPER_CLASS FAR getTextStyle();
  1490.     void putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1491.     void TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1492.     void Combine();
  1493.     void Fragment();
  1494.     void Intersect();
  1495.     void Subtract();
  1496.     void Union();
  1497.     void FlipHorizontal();
  1498.     void FlipVertical();
  1499.     void ReverseEnds();
  1500.     void Rotate90();
  1501.     void Copy();
  1502.     void Cut();
  1503.     void Delete();
  1504.     void Duplicate();
  1505.     void Group();
  1506.     void ConvertToGroup();
  1507.     void Ungroup();
  1508.     void SelectAll();
  1509.     void DeselectAll();
  1510.     void Select(CVisioShape FAR &SheetObject, short SelectAction);
  1511.     CVisioEventList FAR EventList();
  1512.     short PersistsEvents();
  1513.     void Trim();
  1514.     void Join();
  1515.     void FitCurve(double Tolerance, short Flags);
  1516.     void Layout();
  1517.     void BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1518. };
  1519.  
  1520.  
  1521. //  ***************************************************************************
  1522. //  Declaration of class CVisioShape
  1523.  
  1524. class FAR CVisioShape : public CVisioUnknown
  1525. {
  1526. VW_PUBLIC:
  1527.     CVisioShape()
  1528.         : CVisioUnknown() { }
  1529.  
  1530.     CVisioShape(const CVisioShape& other)
  1531.         : CVisioUnknown(other) { }
  1532.  
  1533.     CVisioShape(const IVShape FAR * other, BOOL bAssumeResponsibility= FALSE)
  1534.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1535.  
  1536.     const CVisioShape FAR & operator=(const CVisioShape FAR &other)
  1537.         {
  1538.         if ( &other != this )
  1539.             CopyIP(other.GetUnknown());
  1540.  
  1541.         return *this;
  1542.         }
  1543.  
  1544.     const CVisioShape FAR & operator=(const IVShape FAR * other)
  1545.         {
  1546.         if ( (LPUNKNOWN)other != GetUnknown() )
  1547.             CopyIP((LPUNKNOWN)other);
  1548.  
  1549.         return *this;
  1550.         }
  1551.  
  1552.     virtual ~CVisioShape() { }
  1553.  
  1554.     IVShape FAR * GetIP() const { return (IVShape FAR *) GetUnknown(); }
  1555.  
  1556.     operator IVShape FAR * () { return (IVShape FAR *) GetUnknown(); }
  1557.  
  1558. VW_PUBLIC:
  1559.     void Group();
  1560.     void BringForward();
  1561.     void BringToFront();
  1562.     void ConvertToGroup();
  1563.     void FlipHorizontal();
  1564.     void FlipVertical();
  1565.     void ReverseEnds();
  1566.     void SendBackward();
  1567.     void SendToBack();
  1568.     void Rotate90();
  1569.     void Ungroup();
  1570.     CVisioDocument FAR Document();
  1571.     IDispatch FAR *Parent();
  1572.     CVisioApplication FAR Application();
  1573.     short Stat();
  1574.     CVisioMaster FAR Master();
  1575.     short Type();
  1576.     short ObjectType();
  1577.     CVisioCell FAR Cells(BSTR_HELPER_CLASS FAR &CellName);
  1578.     CVisioCell FAR CellsSRC(short Section, short Row, short Column);
  1579.     CVisioShapes FAR Shapes();
  1580.     BSTR_HELPER_CLASS FAR getData1();
  1581.     void putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1582.     BSTR_HELPER_CLASS FAR getData2();
  1583.     void putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1584.     BSTR_HELPER_CLASS FAR getData3();
  1585.     void putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1586.     BSTR_HELPER_CLASS FAR getHelp();
  1587.     void putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1588.     BSTR_HELPER_CLASS FAR NameID();
  1589.     BSTR_HELPER_CLASS FAR getName();
  1590.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1591.     BSTR_HELPER_CLASS FAR getText();
  1592.     void putText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1593.     long CharCount();
  1594.     CVisioCharacters FAR Characters();
  1595.     void Copy();
  1596.     void Cut();
  1597.     void Delete();
  1598.     void Duplicate();
  1599.     CVisioShape FAR Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos);
  1600.     short getOneD();
  1601.     void putOneD(VW_CONST short param01);
  1602.     short GeometryCount();
  1603.     short RowCount(short Section);
  1604.     short AddSection(short Section);
  1605.     void DeleteSection(short Section);
  1606.     short AddRow(short Section, short Row, short RowTag);
  1607.     void DeleteRow(short Section, short Row);
  1608.     short RowsCellCount(short Section, short Row);
  1609.     short getRowType(short Section, short Row);
  1610.     void putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03);
  1611.     void SetCenter(double xPos, double yPos);
  1612.     void SetBegin(double xPos, double yPos);
  1613.     void SetEnd(double xPos, double yPos);
  1614.     CVisioConnects FAR Connects();
  1615.     short Index();
  1616.     BSTR_HELPER_CLASS FAR getStyle();
  1617.     void putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1618.     void StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1619.     BSTR_HELPER_CLASS FAR getLineStyle();
  1620.     void putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1621.     void LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1622.     BSTR_HELPER_CLASS FAR getFillStyle();
  1623.     void putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1624.     void FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1625.     BSTR_HELPER_CLASS FAR getTextStyle();
  1626.     void putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1627.     void TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1628.     void Export(BSTR_HELPER_CLASS FAR &FileName);
  1629.     double AreaIU();
  1630.     double LengthIU();
  1631.     IUnknown FAR *GeomExIf(short fFill, double LineRes);
  1632.     BSTR_HELPER_CLASS FAR UniqueID(short fUniqueID);
  1633.     CVisioPage FAR ContainingPage();
  1634.     CVisioMaster FAR ContainingMaster();
  1635.     CVisioShape FAR ContainingShape();
  1636.     short SectionExists(short Section, short fLocalExists);
  1637.     short RowExists(short Section, short Row, short fLocalExists);
  1638.     short CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists);
  1639.     short CellsSRCExists(short Section, short Row, short Column, short fLocalExists);
  1640.     short LayerCount();
  1641.     CVisioLayer FAR Layer(short Index);
  1642.     short AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag);
  1643.     short AddRows(short Section, short Row, short RowTag, short RowCount);
  1644.     CVisioEventList FAR EventList();
  1645.     short PersistsEvents();
  1646.     CVisioShape FAR DrawLine(double xLeft, double yTop, double xRight, double yBottom);
  1647.     CVisioShape FAR DrawRectangle(double xLeft, double yTop, double xRight, double yBottom);
  1648.     CVisioShape FAR DrawOval(double xLeft, double yTop, double xRight, double yBottom);
  1649.     CVisioShape FAR DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags);
  1650.     CVisioShape FAR DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags);
  1651.     CVisioShape FAR DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags);
  1652.     void FitCurve(double Tolerance, short Flags);
  1653.     CVisioShape FAR Import(BSTR_HELPER_CLASS FAR &FileName);
  1654.     void CenterDrawing();
  1655.     CVisioShape FAR InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags);
  1656.     CVisioShape FAR InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags);
  1657.     BSTR_HELPER_CLASS FAR ClassID();
  1658.     short ForeignType();
  1659.     IDispatch FAR *Object();
  1660.     CVisioWindow FAR OpenDrawWindow();
  1661.     CVisioWindow FAR OpenSheetWindow();
  1662.     short ID();
  1663.     short DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray);
  1664.     void GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1665.     void GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1666.     short SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags);
  1667.     short SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags);
  1668.     CVisioConnects FAR FromConnects();
  1669.     void Layout();
  1670.     void BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  1671.     short HitTest(double xPos, double yPos, double Tolerance);
  1672.     CVisioHyperlink FAR Hyperlink();
  1673.     BSTR_HELPER_CLASS FAR ProgID();
  1674.     short ObjectIsInherited();
  1675.     CVisioPaths FAR Paths();
  1676.     CVisioPaths FAR PathsLocal();
  1677.     CVisioHyperlink FAR AddHyperlink();
  1678. };
  1679.  
  1680.  
  1681. //  ***************************************************************************
  1682. //  Declaration of class CVisioShapes
  1683.  
  1684. class FAR CVisioShapes : public CVisioUnknown
  1685. {
  1686. VW_PUBLIC:
  1687.     CVisioShapes()
  1688.         : CVisioUnknown() { }
  1689.  
  1690.     CVisioShapes(const CVisioShapes& other)
  1691.         : CVisioUnknown(other) { }
  1692.  
  1693.     CVisioShapes(const IVShapes FAR * other, BOOL bAssumeResponsibility= FALSE)
  1694.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1695.  
  1696.     const CVisioShapes FAR & operator=(const CVisioShapes FAR &other)
  1697.         {
  1698.         if ( &other != this )
  1699.             CopyIP(other.GetUnknown());
  1700.  
  1701.         return *this;
  1702.         }
  1703.  
  1704.     const CVisioShapes FAR & operator=(const IVShapes FAR * other)
  1705.         {
  1706.         if ( (LPUNKNOWN)other != GetUnknown() )
  1707.             CopyIP((LPUNKNOWN)other);
  1708.  
  1709.         return *this;
  1710.         }
  1711.  
  1712.     virtual ~CVisioShapes() { }
  1713.  
  1714.     IVShapes FAR * GetIP() const { return (IVShapes FAR *) GetUnknown(); }
  1715.  
  1716.     operator IVShapes FAR * () { return (IVShapes FAR *) GetUnknown(); }
  1717.  
  1718. VW_PUBLIC:
  1719.     CVisioApplication FAR Application();
  1720.     short ObjectType();
  1721.     CVisioShape FAR Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex);
  1722.     short Count();
  1723.     CVisioDocument FAR Document();
  1724.     CVisioPage FAR ContainingPage();
  1725.     CVisioMaster FAR ContainingMaster();
  1726.     CVisioShape FAR ContainingShape();
  1727.     void CenterDrawing();
  1728.     short Stat();
  1729.     CVisioEventList FAR EventList();
  1730.     short PersistsEvents();
  1731.     CVisioShape FAR ItemFromID(short ObjectID);
  1732. };
  1733.  
  1734.  
  1735. //  ***************************************************************************
  1736. //  Declaration of class CVisioStyle
  1737.  
  1738. class FAR CVisioStyle : public CVisioUnknown
  1739. {
  1740. VW_PUBLIC:
  1741.     CVisioStyle()
  1742.         : CVisioUnknown() { }
  1743.  
  1744.     CVisioStyle(const CVisioStyle& other)
  1745.         : CVisioUnknown(other) { }
  1746.  
  1747.     CVisioStyle(const IVStyle FAR * other, BOOL bAssumeResponsibility= FALSE)
  1748.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1749.  
  1750.     const CVisioStyle FAR & operator=(const CVisioStyle FAR &other)
  1751.         {
  1752.         if ( &other != this )
  1753.             CopyIP(other.GetUnknown());
  1754.  
  1755.         return *this;
  1756.         }
  1757.  
  1758.     const CVisioStyle FAR & operator=(const IVStyle FAR * other)
  1759.         {
  1760.         if ( (LPUNKNOWN)other != GetUnknown() )
  1761.             CopyIP((LPUNKNOWN)other);
  1762.  
  1763.         return *this;
  1764.         }
  1765.  
  1766.     virtual ~CVisioStyle() { }
  1767.  
  1768.     IVStyle FAR * GetIP() const { return (IVStyle FAR *) GetUnknown(); }
  1769.  
  1770.     operator IVStyle FAR * () { return (IVStyle FAR *) GetUnknown(); }
  1771.  
  1772. VW_PUBLIC:
  1773.     CVisioApplication FAR Application();
  1774.     short Stat();
  1775.     short ObjectType();
  1776.     BSTR_HELPER_CLASS FAR getName();
  1777.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1778.     short Index();
  1779.     CVisioDocument FAR Document();
  1780.     BSTR_HELPER_CLASS FAR getBasedOn();
  1781.     void putBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1782.     BSTR_HELPER_CLASS FAR getTextBasedOn();
  1783.     void putTextBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1784.     BSTR_HELPER_CLASS FAR getLineBasedOn();
  1785.     void putLineBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1786.     BSTR_HELPER_CLASS FAR getFillBasedOn();
  1787.     void putFillBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1788.     short getIncludesText();
  1789.     void putIncludesText(VW_CONST short param01);
  1790.     short getIncludesLine();
  1791.     void putIncludesLine(VW_CONST short param01);
  1792.     short getIncludesFill();
  1793.     void putIncludesFill(VW_CONST short param01);
  1794.     CVisioCell FAR Cells(BSTR_HELPER_CLASS FAR &CellName);
  1795.     void Delete();
  1796.     CVisioEventList FAR EventList();
  1797.     short PersistsEvents();
  1798.     short ID();
  1799.     void GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  1800.     void GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  1801.     short SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags);
  1802.     short SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags);
  1803. };
  1804.  
  1805.  
  1806. //  ***************************************************************************
  1807. //  Declaration of class CVisioStyles
  1808.  
  1809. class FAR CVisioStyles : public CVisioUnknown
  1810. {
  1811. VW_PUBLIC:
  1812.     CVisioStyles()
  1813.         : CVisioUnknown() { }
  1814.  
  1815.     CVisioStyles(const CVisioStyles& other)
  1816.         : CVisioUnknown(other) { }
  1817.  
  1818.     CVisioStyles(const IVStyles FAR * other, BOOL bAssumeResponsibility= FALSE)
  1819.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1820.  
  1821.     const CVisioStyles FAR & operator=(const CVisioStyles FAR &other)
  1822.         {
  1823.         if ( &other != this )
  1824.             CopyIP(other.GetUnknown());
  1825.  
  1826.         return *this;
  1827.         }
  1828.  
  1829.     const CVisioStyles FAR & operator=(const IVStyles FAR * other)
  1830.         {
  1831.         if ( (LPUNKNOWN)other != GetUnknown() )
  1832.             CopyIP((LPUNKNOWN)other);
  1833.  
  1834.         return *this;
  1835.         }
  1836.  
  1837.     virtual ~CVisioStyles() { }
  1838.  
  1839.     IVStyles FAR * GetIP() const { return (IVStyles FAR *) GetUnknown(); }
  1840.  
  1841.     operator IVStyles FAR * () { return (IVStyles FAR *) GetUnknown(); }
  1842.  
  1843. VW_PUBLIC:
  1844.     CVisioApplication FAR Application();
  1845.     short ObjectType();
  1846.     CVisioStyle FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  1847.     short Count();
  1848.     CVisioDocument FAR Document();
  1849.     CVisioStyle FAR Add(BSTR_HELPER_CLASS FAR &StyleName, BSTR_HELPER_CLASS FAR &BasedOn, short fIncludesText, short fIncludesLine, short fIncludesFill);
  1850.     short Stat();
  1851.     CVisioEventList FAR EventList();
  1852.     short PersistsEvents();
  1853.     CVisioStyle FAR ItemFromID(short ObjectID);
  1854.     void GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1855. };
  1856.  
  1857.  
  1858. //  ***************************************************************************
  1859. //  Declaration of class CVisioWindow
  1860.  
  1861. class FAR CVisioWindow : public CVisioUnknown
  1862. {
  1863. VW_PUBLIC:
  1864.     CVisioWindow()
  1865.         : CVisioUnknown() { }
  1866.  
  1867.     CVisioWindow(const CVisioWindow& other)
  1868.         : CVisioUnknown(other) { }
  1869.  
  1870.     CVisioWindow(const IVWindow FAR * other, BOOL bAssumeResponsibility= FALSE)
  1871.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1872.  
  1873.     const CVisioWindow FAR & operator=(const CVisioWindow FAR &other)
  1874.         {
  1875.         if ( &other != this )
  1876.             CopyIP(other.GetUnknown());
  1877.  
  1878.         return *this;
  1879.         }
  1880.  
  1881.     const CVisioWindow FAR & operator=(const IVWindow FAR * other)
  1882.         {
  1883.         if ( (LPUNKNOWN)other != GetUnknown() )
  1884.             CopyIP((LPUNKNOWN)other);
  1885.  
  1886.         return *this;
  1887.         }
  1888.  
  1889.     virtual ~CVisioWindow() { }
  1890.  
  1891.     IVWindow FAR * GetIP() const { return (IVWindow FAR *) GetUnknown(); }
  1892.  
  1893.     operator IVWindow FAR * () { return (IVWindow FAR *) GetUnknown(); }
  1894.  
  1895. VW_PUBLIC:
  1896.     CVisioApplication FAR Application();
  1897.     short Stat();
  1898.     short ObjectType();
  1899.     void Activate();
  1900.     short Type();
  1901.     CVisioDocument FAR Document();
  1902.     CVisioPage FAR PageAsObj();
  1903.     void PageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  1904.     double getZoom();
  1905.     void putZoom(VW_CONST double param01);
  1906.     void Close();
  1907.     void SelectAll();
  1908.     void DeselectAll();
  1909.     CVisioSelection FAR Selection();
  1910.     void Select(CVisioShape FAR &SheetObject, short SelectAction);
  1911.     short Index();
  1912.     void Cut();
  1913.     void Copy();
  1914.     void Paste();
  1915.     void Delete();
  1916.     void Duplicate();
  1917.     void Group();
  1918.     void Union();
  1919.     void Combine();
  1920.     void Fragment();
  1921.     void AddToGroup();
  1922.     void RemoveFromGroup();
  1923.     short SubType();
  1924.     void Intersect();
  1925.     void Subtract();
  1926.     CVisioEventList FAR EventList();
  1927.     short PersistsEvents();
  1928.     short WindowHandle();
  1929.     long WindowHandle32();
  1930.     void Trim();
  1931.     void Join();
  1932.     short getShowRulers();
  1933.     void putShowRulers(VW_CONST short param01);
  1934.     short getShowGrid();
  1935.     void putShowGrid(VW_CONST short param01);
  1936.     short getShowGuides();
  1937.     void putShowGuides(VW_CONST short param01);
  1938.     short getShowConnectPoints();
  1939.     void putShowConnectPoints(VW_CONST short param01);
  1940.     short getShowPageBreaks();
  1941.     void putShowPageBreaks(VW_CONST short param01);
  1942.     VARIANT_HELPER_CLASS FAR getPage();
  1943.     void putPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01);
  1944.     void DockedStencils(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  1945.     VARIANT_HELPER_CLASS FAR Master();
  1946.     short getShowScrollBars();
  1947.     void putShowScrollBars(VW_CONST short param01);
  1948. };
  1949.  
  1950.  
  1951. //  ***************************************************************************
  1952. //  Declaration of class CVisioWindows
  1953.  
  1954. class FAR CVisioWindows : public CVisioUnknown
  1955. {
  1956. VW_PUBLIC:
  1957.     CVisioWindows()
  1958.         : CVisioUnknown() { }
  1959.  
  1960.     CVisioWindows(const CVisioWindows& other)
  1961.         : CVisioUnknown(other) { }
  1962.  
  1963.     CVisioWindows(const IVWindows FAR * other, BOOL bAssumeResponsibility= FALSE)
  1964.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  1965.  
  1966.     const CVisioWindows FAR & operator=(const CVisioWindows FAR &other)
  1967.         {
  1968.         if ( &other != this )
  1969.             CopyIP(other.GetUnknown());
  1970.  
  1971.         return *this;
  1972.         }
  1973.  
  1974.     const CVisioWindows FAR & operator=(const IVWindows FAR * other)
  1975.         {
  1976.         if ( (LPUNKNOWN)other != GetUnknown() )
  1977.             CopyIP((LPUNKNOWN)other);
  1978.  
  1979.         return *this;
  1980.         }
  1981.  
  1982.     virtual ~CVisioWindows() { }
  1983.  
  1984.     IVWindows FAR * GetIP() const { return (IVWindows FAR *) GetUnknown(); }
  1985.  
  1986.     operator IVWindows FAR * () { return (IVWindows FAR *) GetUnknown(); }
  1987.  
  1988. VW_PUBLIC:
  1989.     CVisioApplication FAR Application();
  1990.     short ObjectType();
  1991.     CVisioWindow FAR Item(short Index);
  1992.     short Count();
  1993.     void Arrange();
  1994.     CVisioEventList FAR EventList();
  1995.     short PersistsEvents();
  1996. };
  1997.  
  1998.  
  1999. //  ***************************************************************************
  2000. //  Declaration of class CVisioLayer
  2001.  
  2002. class FAR CVisioLayer : public CVisioUnknown
  2003. {
  2004. VW_PUBLIC:
  2005.     CVisioLayer()
  2006.         : CVisioUnknown() { }
  2007.  
  2008.     CVisioLayer(const CVisioLayer& other)
  2009.         : CVisioUnknown(other) { }
  2010.  
  2011.     CVisioLayer(const IVLayer FAR * other, BOOL bAssumeResponsibility= FALSE)
  2012.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2013.  
  2014.     const CVisioLayer FAR & operator=(const CVisioLayer FAR &other)
  2015.         {
  2016.         if ( &other != this )
  2017.             CopyIP(other.GetUnknown());
  2018.  
  2019.         return *this;
  2020.         }
  2021.  
  2022.     const CVisioLayer FAR & operator=(const IVLayer FAR * other)
  2023.         {
  2024.         if ( (LPUNKNOWN)other != GetUnknown() )
  2025.             CopyIP((LPUNKNOWN)other);
  2026.  
  2027.         return *this;
  2028.         }
  2029.  
  2030.     virtual ~CVisioLayer() { }
  2031.  
  2032.     IVLayer FAR * GetIP() const { return (IVLayer FAR *) GetUnknown(); }
  2033.  
  2034.     operator IVLayer FAR * () { return (IVLayer FAR *) GetUnknown(); }
  2035.  
  2036. VW_PUBLIC:
  2037.     CVisioApplication FAR Application();
  2038.     CVisioDocument FAR Document();
  2039.     CVisioPage FAR Page();
  2040.     CVisioMaster FAR Master();
  2041.     short Index();
  2042.     short Row();
  2043.     void Add(CVisioShape FAR &SheetObject, short fPresMems);
  2044.     void Remove(CVisioShape FAR &SheetObject, short fPresMems);
  2045.     void Delete(short fDeleteShapes);
  2046.     BSTR_HELPER_CLASS FAR getName();
  2047.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  2048.     CVisioCell FAR CellsC(short Column);
  2049.     short ObjectType();
  2050.     short Stat();
  2051.     CVisioEventList FAR EventList();
  2052.     short PersistsEvents();
  2053. };
  2054.  
  2055.  
  2056. //  ***************************************************************************
  2057. //  Declaration of class CVisioLayers
  2058.  
  2059. class FAR CVisioLayers : public CVisioUnknown
  2060. {
  2061. VW_PUBLIC:
  2062.     CVisioLayers()
  2063.         : CVisioUnknown() { }
  2064.  
  2065.     CVisioLayers(const CVisioLayers& other)
  2066.         : CVisioUnknown(other) { }
  2067.  
  2068.     CVisioLayers(const IVLayers FAR * other, BOOL bAssumeResponsibility= FALSE)
  2069.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2070.  
  2071.     const CVisioLayers FAR & operator=(const CVisioLayers FAR &other)
  2072.         {
  2073.         if ( &other != this )
  2074.             CopyIP(other.GetUnknown());
  2075.  
  2076.         return *this;
  2077.         }
  2078.  
  2079.     const CVisioLayers FAR & operator=(const IVLayers FAR * other)
  2080.         {
  2081.         if ( (LPUNKNOWN)other != GetUnknown() )
  2082.             CopyIP((LPUNKNOWN)other);
  2083.  
  2084.         return *this;
  2085.         }
  2086.  
  2087.     virtual ~CVisioLayers() { }
  2088.  
  2089.     IVLayers FAR * GetIP() const { return (IVLayers FAR *) GetUnknown(); }
  2090.  
  2091.     operator IVLayers FAR * () { return (IVLayers FAR *) GetUnknown(); }
  2092.  
  2093. VW_PUBLIC:
  2094.     CVisioApplication FAR Application();
  2095.     CVisioDocument FAR Document();
  2096.     CVisioPage FAR Page();
  2097.     CVisioMaster FAR Master();
  2098.     short Count();
  2099.     CVisioLayer FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  2100.     CVisioLayer FAR Add(BSTR_HELPER_CLASS FAR &LayerName);
  2101.     short ObjectType();
  2102.     short Stat();
  2103.     CVisioEventList FAR EventList();
  2104.     short PersistsEvents();
  2105. };
  2106.  
  2107.  
  2108. //  ***************************************************************************
  2109. //  Declaration of class CVisioFont
  2110.  
  2111. class FAR CVisioFont : public CVisioUnknown
  2112. {
  2113. VW_PUBLIC:
  2114.     CVisioFont()
  2115.         : CVisioUnknown() { }
  2116.  
  2117.     CVisioFont(const CVisioFont& other)
  2118.         : CVisioUnknown(other) { }
  2119.  
  2120.     CVisioFont(const IVFont FAR * other, BOOL bAssumeResponsibility= FALSE)
  2121.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2122.  
  2123.     const CVisioFont FAR & operator=(const CVisioFont FAR &other)
  2124.         {
  2125.         if ( &other != this )
  2126.             CopyIP(other.GetUnknown());
  2127.  
  2128.         return *this;
  2129.         }
  2130.  
  2131.     const CVisioFont FAR & operator=(const IVFont FAR * other)
  2132.         {
  2133.         if ( (LPUNKNOWN)other != GetUnknown() )
  2134.             CopyIP((LPUNKNOWN)other);
  2135.  
  2136.         return *this;
  2137.         }
  2138.  
  2139.     virtual ~CVisioFont() { }
  2140.  
  2141.     IVFont FAR * GetIP() const { return (IVFont FAR *) GetUnknown(); }
  2142.  
  2143.     operator IVFont FAR * () { return (IVFont FAR *) GetUnknown(); }
  2144.  
  2145. VW_PUBLIC:
  2146.     CVisioApplication FAR Application();
  2147.     CVisioDocument FAR Document();
  2148.     short Index();
  2149.     BSTR_HELPER_CLASS FAR Name();
  2150.     short ID();
  2151.     short Attributes();
  2152.     short CharSet();
  2153.     short PitchAndFamily();
  2154.     short ObjectType();
  2155.     short Stat();
  2156. };
  2157.  
  2158.  
  2159. //  ***************************************************************************
  2160. //  Declaration of class CVisioFonts
  2161.  
  2162. class FAR CVisioFonts : public CVisioUnknown
  2163. {
  2164. VW_PUBLIC:
  2165.     CVisioFonts()
  2166.         : CVisioUnknown() { }
  2167.  
  2168.     CVisioFonts(const CVisioFonts& other)
  2169.         : CVisioUnknown(other) { }
  2170.  
  2171.     CVisioFonts(const IVFonts FAR * other, BOOL bAssumeResponsibility= FALSE)
  2172.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2173.  
  2174.     const CVisioFonts FAR & operator=(const CVisioFonts FAR &other)
  2175.         {
  2176.         if ( &other != this )
  2177.             CopyIP(other.GetUnknown());
  2178.  
  2179.         return *this;
  2180.         }
  2181.  
  2182.     const CVisioFonts FAR & operator=(const IVFonts FAR * other)
  2183.         {
  2184.         if ( (LPUNKNOWN)other != GetUnknown() )
  2185.             CopyIP((LPUNKNOWN)other);
  2186.  
  2187.         return *this;
  2188.         }
  2189.  
  2190.     virtual ~CVisioFonts() { }
  2191.  
  2192.     IVFonts FAR * GetIP() const { return (IVFonts FAR *) GetUnknown(); }
  2193.  
  2194.     operator IVFonts FAR * () { return (IVFonts FAR *) GetUnknown(); }
  2195.  
  2196. VW_PUBLIC:
  2197.     CVisioApplication FAR Application();
  2198.     CVisioDocument FAR Document();
  2199.     short Count();
  2200.     CVisioFont FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  2201.     CVisioFont FAR ItemFromID(long ObjectID);
  2202.     short ObjectType();
  2203.     short Stat();
  2204. };
  2205.  
  2206.  
  2207. //  ***************************************************************************
  2208. //  Declaration of class CVisioColor
  2209.  
  2210. class FAR CVisioColor : public CVisioUnknown
  2211. {
  2212. VW_PUBLIC:
  2213.     CVisioColor()
  2214.         : CVisioUnknown() { }
  2215.  
  2216.     CVisioColor(const CVisioColor& other)
  2217.         : CVisioUnknown(other) { }
  2218.  
  2219.     CVisioColor(const IVColor FAR * other, BOOL bAssumeResponsibility= FALSE)
  2220.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2221.  
  2222.     const CVisioColor FAR & operator=(const CVisioColor FAR &other)
  2223.         {
  2224.         if ( &other != this )
  2225.             CopyIP(other.GetUnknown());
  2226.  
  2227.         return *this;
  2228.         }
  2229.  
  2230.     const CVisioColor FAR & operator=(const IVColor FAR * other)
  2231.         {
  2232.         if ( (LPUNKNOWN)other != GetUnknown() )
  2233.             CopyIP((LPUNKNOWN)other);
  2234.  
  2235.         return *this;
  2236.         }
  2237.  
  2238.     virtual ~CVisioColor() { }
  2239.  
  2240.     IVColor FAR * GetIP() const { return (IVColor FAR *) GetUnknown(); }
  2241.  
  2242.     operator IVColor FAR * () { return (IVColor FAR *) GetUnknown(); }
  2243.  
  2244. VW_PUBLIC:
  2245.     CVisioApplication FAR Application();
  2246.     CVisioDocument FAR Document();
  2247.     short Index();
  2248.     short getRed();
  2249.     void putRed(VW_CONST short param01);
  2250.     short getGreen();
  2251.     void putGreen(VW_CONST short param01);
  2252.     short getBlue();
  2253.     void putBlue(VW_CONST short param01);
  2254.     short getFlags();
  2255.     void putFlags(VW_CONST short param01);
  2256.     long getPaletteEntry();
  2257.     void putPaletteEntry(VW_CONST long param01);
  2258.     short ObjectType();
  2259.     short Stat();
  2260. };
  2261.  
  2262.  
  2263. //  ***************************************************************************
  2264. //  Declaration of class CVisioColors
  2265.  
  2266. class FAR CVisioColors : public CVisioUnknown
  2267. {
  2268. VW_PUBLIC:
  2269.     CVisioColors()
  2270.         : CVisioUnknown() { }
  2271.  
  2272.     CVisioColors(const CVisioColors& other)
  2273.         : CVisioUnknown(other) { }
  2274.  
  2275.     CVisioColors(const IVColors FAR * other, BOOL bAssumeResponsibility= FALSE)
  2276.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2277.  
  2278.     const CVisioColors FAR & operator=(const CVisioColors FAR &other)
  2279.         {
  2280.         if ( &other != this )
  2281.             CopyIP(other.GetUnknown());
  2282.  
  2283.         return *this;
  2284.         }
  2285.  
  2286.     const CVisioColors FAR & operator=(const IVColors FAR * other)
  2287.         {
  2288.         if ( (LPUNKNOWN)other != GetUnknown() )
  2289.             CopyIP((LPUNKNOWN)other);
  2290.  
  2291.         return *this;
  2292.         }
  2293.  
  2294.     virtual ~CVisioColors() { }
  2295.  
  2296.     IVColors FAR * GetIP() const { return (IVColors FAR *) GetUnknown(); }
  2297.  
  2298.     operator IVColors FAR * () { return (IVColors FAR *) GetUnknown(); }
  2299.  
  2300. VW_PUBLIC:
  2301.     CVisioApplication FAR Application();
  2302.     CVisioDocument FAR Document();
  2303.     short Count();
  2304.     CVisioColor FAR Item(short Index);
  2305.     short ObjectType();
  2306.     short Stat();
  2307. };
  2308.  
  2309.  
  2310. //  ***************************************************************************
  2311. //  Declaration of class CVisioAddon
  2312.  
  2313. class FAR CVisioAddon : public CVisioUnknown
  2314. {
  2315. VW_PUBLIC:
  2316.     CVisioAddon()
  2317.         : CVisioUnknown() { }
  2318.  
  2319.     CVisioAddon(const CVisioAddon& other)
  2320.         : CVisioUnknown(other) { }
  2321.  
  2322.     CVisioAddon(const IVAddon FAR * other, BOOL bAssumeResponsibility= FALSE)
  2323.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2324.  
  2325.     const CVisioAddon FAR & operator=(const CVisioAddon FAR &other)
  2326.         {
  2327.         if ( &other != this )
  2328.             CopyIP(other.GetUnknown());
  2329.  
  2330.         return *this;
  2331.         }
  2332.  
  2333.     const CVisioAddon FAR & operator=(const IVAddon FAR * other)
  2334.         {
  2335.         if ( (LPUNKNOWN)other != GetUnknown() )
  2336.             CopyIP((LPUNKNOWN)other);
  2337.  
  2338.         return *this;
  2339.         }
  2340.  
  2341.     virtual ~CVisioAddon() { }
  2342.  
  2343.     IVAddon FAR * GetIP() const { return (IVAddon FAR *) GetUnknown(); }
  2344.  
  2345.     operator IVAddon FAR * () { return (IVAddon FAR *) GetUnknown(); }
  2346.  
  2347. VW_PUBLIC:
  2348.     CVisioApplication FAR Application();
  2349.     short ObjectType();
  2350.     BSTR_HELPER_CLASS FAR Name();
  2351.     short Index();
  2352.     short Enabled();
  2353.     void Run(BSTR_HELPER_CLASS FAR &ArgString);
  2354. };
  2355.  
  2356.  
  2357. //  ***************************************************************************
  2358. //  Declaration of class CVisioAddons
  2359.  
  2360. class FAR CVisioAddons : public CVisioUnknown
  2361. {
  2362. VW_PUBLIC:
  2363.     CVisioAddons()
  2364.         : CVisioUnknown() { }
  2365.  
  2366.     CVisioAddons(const CVisioAddons& other)
  2367.         : CVisioUnknown(other) { }
  2368.  
  2369.     CVisioAddons(const IVAddons FAR * other, BOOL bAssumeResponsibility= FALSE)
  2370.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2371.  
  2372.     const CVisioAddons FAR & operator=(const CVisioAddons FAR &other)
  2373.         {
  2374.         if ( &other != this )
  2375.             CopyIP(other.GetUnknown());
  2376.  
  2377.         return *this;
  2378.         }
  2379.  
  2380.     const CVisioAddons FAR & operator=(const IVAddons FAR * other)
  2381.         {
  2382.         if ( (LPUNKNOWN)other != GetUnknown() )
  2383.             CopyIP((LPUNKNOWN)other);
  2384.  
  2385.         return *this;
  2386.         }
  2387.  
  2388.     virtual ~CVisioAddons() { }
  2389.  
  2390.     IVAddons FAR * GetIP() const { return (IVAddons FAR *) GetUnknown(); }
  2391.  
  2392.     operator IVAddons FAR * () { return (IVAddons FAR *) GetUnknown(); }
  2393.  
  2394. VW_PUBLIC:
  2395.     CVisioApplication FAR Application();
  2396.     short ObjectType();
  2397.     CVisioAddon FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  2398.     short Count();
  2399.     CVisioAddon FAR Add(BSTR_HELPER_CLASS FAR &FileName);
  2400.     void GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray);
  2401. };
  2402.  
  2403.  
  2404. //  ***************************************************************************
  2405. //  Declaration of class CVisioEvent
  2406.  
  2407. class FAR CVisioEvent : public CVisioUnknown
  2408. {
  2409. VW_PUBLIC:
  2410.     CVisioEvent()
  2411.         : CVisioUnknown() { }
  2412.  
  2413.     CVisioEvent(const CVisioEvent& other)
  2414.         : CVisioUnknown(other) { }
  2415.  
  2416.     CVisioEvent(const IVEvent FAR * other, BOOL bAssumeResponsibility= FALSE)
  2417.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2418.  
  2419.     const CVisioEvent FAR & operator=(const CVisioEvent FAR &other)
  2420.         {
  2421.         if ( &other != this )
  2422.             CopyIP(other.GetUnknown());
  2423.  
  2424.         return *this;
  2425.         }
  2426.  
  2427.     const CVisioEvent FAR & operator=(const IVEvent FAR * other)
  2428.         {
  2429.         if ( (LPUNKNOWN)other != GetUnknown() )
  2430.             CopyIP((LPUNKNOWN)other);
  2431.  
  2432.         return *this;
  2433.         }
  2434.  
  2435.     virtual ~CVisioEvent() { }
  2436.  
  2437.     IVEvent FAR * GetIP() const { return (IVEvent FAR *) GetUnknown(); }
  2438.  
  2439.     operator IVEvent FAR * () { return (IVEvent FAR *) GetUnknown(); }
  2440.  
  2441. VW_PUBLIC:
  2442.     CVisioApplication FAR Application();
  2443.     CVisioEventList FAR EventList();
  2444.     short Index();
  2445.     short getEvent();
  2446.     void putEvent(VW_CONST short param01);
  2447.     short getAction();
  2448.     void putAction(VW_CONST short param01);
  2449.     BSTR_HELPER_CLASS FAR getTarget();
  2450.     void putTarget(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  2451.     BSTR_HELPER_CLASS FAR getTargetArgs();
  2452.     void putTargetArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  2453.     void Trigger(BSTR_HELPER_CLASS FAR &ContextString);
  2454.     void Delete();
  2455.     short ObjectType();
  2456.     long ID();
  2457.     short getEnabled();
  2458.     void putEnabled(VW_CONST short param01);
  2459.     short Persistable();
  2460.     short getPersistent();
  2461.     void putPersistent(VW_CONST short param01);
  2462. };
  2463.  
  2464.  
  2465. //  ***************************************************************************
  2466. //  Declaration of class CVisioEventList
  2467.  
  2468. class FAR CVisioEventList : public CVisioUnknown
  2469. {
  2470. VW_PUBLIC:
  2471.     CVisioEventList()
  2472.         : CVisioUnknown() { }
  2473.  
  2474.     CVisioEventList(const CVisioEventList& other)
  2475.         : CVisioUnknown(other) { }
  2476.  
  2477.     CVisioEventList(const IVEventList FAR * other, BOOL bAssumeResponsibility= FALSE)
  2478.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2479.  
  2480.     const CVisioEventList FAR & operator=(const CVisioEventList FAR &other)
  2481.         {
  2482.         if ( &other != this )
  2483.             CopyIP(other.GetUnknown());
  2484.  
  2485.         return *this;
  2486.         }
  2487.  
  2488.     const CVisioEventList FAR & operator=(const IVEventList FAR * other)
  2489.         {
  2490.         if ( (LPUNKNOWN)other != GetUnknown() )
  2491.             CopyIP((LPUNKNOWN)other);
  2492.  
  2493.         return *this;
  2494.         }
  2495.  
  2496.     virtual ~CVisioEventList() { }
  2497.  
  2498.     IVEventList FAR * GetIP() const { return (IVEventList FAR *) GetUnknown(); }
  2499.  
  2500.     operator IVEventList FAR * () { return (IVEventList FAR *) GetUnknown(); }
  2501.  
  2502. VW_PUBLIC:
  2503.     CVisioApplication FAR Application();
  2504.     short ObjectType();
  2505.     CVisioEvent FAR Item(short Index);
  2506.     short Count();
  2507.     CVisioEvent FAR Add(short EventCode, short Action, BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &TargetArgs);
  2508.     CVisioEvent FAR AddAdvise(short EventCode, VARIANT_HELPER_CLASS FAR &SinkIUnkOrIDisp, BSTR_HELPER_CLASS FAR &IIDSink, BSTR_HELPER_CLASS FAR &TargetArgs);
  2509.     CVisioEvent FAR ItemFromID(long ObjectID);
  2510. };
  2511.  
  2512.  
  2513. //  ***************************************************************************
  2514. //  Declaration of class CVisioGlobal
  2515.  
  2516. class FAR CVisioGlobal : public CVisioUnknown
  2517. {
  2518. VW_PUBLIC:
  2519.     CVisioGlobal()
  2520.         : CVisioUnknown() { }
  2521.  
  2522.     CVisioGlobal(const CVisioGlobal& other)
  2523.         : CVisioUnknown(other) { }
  2524.  
  2525.     CVisioGlobal(const IVGlobal FAR * other, BOOL bAssumeResponsibility= FALSE)
  2526.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2527.  
  2528.     const CVisioGlobal FAR & operator=(const CVisioGlobal FAR &other)
  2529.         {
  2530.         if ( &other != this )
  2531.             CopyIP(other.GetUnknown());
  2532.  
  2533.         return *this;
  2534.         }
  2535.  
  2536.     const CVisioGlobal FAR & operator=(const IVGlobal FAR * other)
  2537.         {
  2538.         if ( (LPUNKNOWN)other != GetUnknown() )
  2539.             CopyIP((LPUNKNOWN)other);
  2540.  
  2541.         return *this;
  2542.         }
  2543.  
  2544.     virtual ~CVisioGlobal() { }
  2545.  
  2546.     IVGlobal FAR * GetIP() const { return (IVGlobal FAR *) GetUnknown(); }
  2547.  
  2548.     operator IVGlobal FAR * () { return (IVGlobal FAR *) GetUnknown(); }
  2549.  
  2550. VW_PUBLIC:
  2551.     CVisioApplication FAR Application();
  2552.     CVisioDocument FAR ActiveDocument();
  2553.     CVisioPage FAR ActivePage();
  2554.     CVisioWindow FAR ActiveWindow();
  2555.     CVisioDocuments FAR Documents();
  2556.     CVisioWindows FAR Windows();
  2557.     CVisioAddons FAR Addons();
  2558.     IDispatch FAR *Vbe();
  2559. };
  2560.  
  2561.  
  2562. //  ***************************************************************************
  2563. //  Declaration of class CVisioEDocument
  2564.  
  2565. class FAR CVisioEDocument : public CVisioUnknown
  2566. {
  2567. VW_PUBLIC:
  2568.     CVisioEDocument()
  2569.         : CVisioUnknown() { }
  2570.  
  2571.     CVisioEDocument(const CVisioEDocument& other)
  2572.         : CVisioUnknown(other) { }
  2573.  
  2574.     CVisioEDocument(const EDocument FAR * other, BOOL bAssumeResponsibility= FALSE)
  2575.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2576.  
  2577.     const CVisioEDocument FAR & operator=(const CVisioEDocument FAR &other)
  2578.         {
  2579.         if ( &other != this )
  2580.             CopyIP(other.GetUnknown());
  2581.  
  2582.         return *this;
  2583.         }
  2584.  
  2585.     const CVisioEDocument FAR & operator=(const EDocument FAR * other)
  2586.         {
  2587.         if ( (LPUNKNOWN)other != GetUnknown() )
  2588.             CopyIP((LPUNKNOWN)other);
  2589.  
  2590.         return *this;
  2591.         }
  2592.  
  2593.     virtual ~CVisioEDocument() { }
  2594.  
  2595.     EDocument FAR * GetIP() const { return (EDocument FAR *) GetUnknown(); }
  2596.  
  2597.     operator EDocument FAR * () { return (EDocument FAR *) GetUnknown(); }
  2598.  
  2599. VW_PUBLIC:
  2600. #if 0
  2601.     //  This method list provided for information only...
  2602.     void DocumentOpened(CVisioDocument FAR &doc);
  2603.     void DocumentCreated(CVisioDocument FAR &doc);
  2604.     void DocumentSaved(CVisioDocument FAR &doc);
  2605.     void DocumentSavedAs(CVisioDocument FAR &doc);
  2606.     void DocumentChanged(CVisioDocument FAR &doc);
  2607.     void BeforeDocumentClose(CVisioDocument FAR &doc);
  2608.     void StyleAdded(CVisioStyle FAR &Style);
  2609.     void StyleChanged(CVisioStyle FAR &Style);
  2610.     void BeforeStyleDelete(CVisioStyle FAR &Style);
  2611.     void MasterAdded(CVisioMaster FAR &Master);
  2612.     void MasterChanged(CVisioMaster FAR &Master);
  2613.     void BeforeMasterDelete(CVisioMaster FAR &Master);
  2614.     void PageAdded(CVisioPage FAR &Page);
  2615.     void PageChanged(CVisioPage FAR &Page);
  2616.     void BeforePageDelete(CVisioPage FAR &Page);
  2617.     void ShapeAdded(CVisioShape FAR &Shape);
  2618.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  2619.     void RunModeEntered(CVisioDocument FAR &doc);
  2620.     void DesignModeEntered(CVisioDocument FAR &doc);
  2621.     void BeforeDocumentSave(CVisioDocument FAR &doc);
  2622.     void BeforeDocumentSaveAs(CVisioDocument FAR &doc);
  2623. #endif  //  0
  2624. };
  2625.  
  2626.  
  2627. //  ***************************************************************************
  2628. //  Declaration of class CVisioEApplication
  2629.  
  2630. class FAR CVisioEApplication : public CVisioUnknown
  2631. {
  2632. VW_PUBLIC:
  2633.     CVisioEApplication()
  2634.         : CVisioUnknown() { }
  2635.  
  2636.     CVisioEApplication(const CVisioEApplication& other)
  2637.         : CVisioUnknown(other) { }
  2638.  
  2639.     CVisioEApplication(const EApplication FAR * other, BOOL bAssumeResponsibility= FALSE)
  2640.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2641.  
  2642.     const CVisioEApplication FAR & operator=(const CVisioEApplication FAR &other)
  2643.         {
  2644.         if ( &other != this )
  2645.             CopyIP(other.GetUnknown());
  2646.  
  2647.         return *this;
  2648.         }
  2649.  
  2650.     const CVisioEApplication FAR & operator=(const EApplication FAR * other)
  2651.         {
  2652.         if ( (LPUNKNOWN)other != GetUnknown() )
  2653.             CopyIP((LPUNKNOWN)other);
  2654.  
  2655.         return *this;
  2656.         }
  2657.  
  2658.     virtual ~CVisioEApplication() { }
  2659.  
  2660.     EApplication FAR * GetIP() const { return (EApplication FAR *) GetUnknown(); }
  2661.  
  2662.     operator EApplication FAR * () { return (EApplication FAR *) GetUnknown(); }
  2663.  
  2664. VW_PUBLIC:
  2665. #if 0
  2666.     //  This method list provided for information only...
  2667.     void AppActivated(CVisioApplication FAR &app);
  2668.     void AppDeactivated(CVisioApplication FAR &app);
  2669.     void AppObjActivated(CVisioApplication FAR &app);
  2670.     void AppObjDeactivated(CVisioApplication FAR &app);
  2671.     void BeforeQuit(CVisioApplication FAR &app);
  2672.     void BeforeModal(CVisioApplication FAR &app);
  2673.     void AfterModal(CVisioApplication FAR &app);
  2674.     void WindowOpened(CVisioWindow FAR &Window);
  2675.     void SelectionChanged(CVisioWindow FAR &Window);
  2676.     void BeforeWindowClosed(CVisioWindow FAR &Window);
  2677.     void WindowActivated(CVisioWindow FAR &Window);
  2678.     void BeforeWindowSelDelete(CVisioWindow FAR &Window);
  2679.     void BeforeWindowPageTurn(CVisioWindow FAR &Window);
  2680.     void WindowTurnedToPage(CVisioWindow FAR &Window);
  2681.     void DocumentOpened(CVisioDocument FAR &doc);
  2682.     void DocumentCreated(CVisioDocument FAR &doc);
  2683.     void DocumentSaved(CVisioDocument FAR &doc);
  2684.     void DocumentSavedAs(CVisioDocument FAR &doc);
  2685.     void DocumentChanged(CVisioDocument FAR &doc);
  2686.     void BeforeDocumentClose(CVisioDocument FAR &doc);
  2687.     void StyleAdded(CVisioStyle FAR &Style);
  2688.     void StyleChanged(CVisioStyle FAR &Style);
  2689.     void BeforeStyleDelete(CVisioStyle FAR &Style);
  2690.     void MasterAdded(CVisioMaster FAR &Master);
  2691.     void MasterChanged(CVisioMaster FAR &Master);
  2692.     void BeforeMasterDelete(CVisioMaster FAR &Master);
  2693.     void PageAdded(CVisioPage FAR &Page);
  2694.     void PageChanged(CVisioPage FAR &Page);
  2695.     void BeforePageDelete(CVisioPage FAR &Page);
  2696.     void ShapeAdded(CVisioShape FAR &Shape);
  2697.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  2698.     void ShapeChanged(CVisioShape FAR &Shape);
  2699.     void SelectionAdded(CVisioSelection FAR &Selection);
  2700.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  2701.     void TextChanged(CVisioShape FAR &Shape);
  2702.     void CellChanged(CVisioCell FAR &Cell);
  2703.     void MarkerEvent(CVisioApplication FAR &app, long SequenceNum, BSTR_HELPER_CLASS FAR &ContextString);
  2704.     void NoEventsPending(CVisioApplication FAR &app);
  2705.     void VisioIsIdle(CVisioApplication FAR &app);
  2706.     void MustFlushScopeBeginning(CVisioApplication FAR &app);
  2707.     void MustFlushScopeEnded(CVisioApplication FAR &app);
  2708.     void RunModeEntered(CVisioDocument FAR &doc);
  2709.     void DesignModeEntered(CVisioDocument FAR &doc);
  2710.     void BeforeDocumentSave(CVisioDocument FAR &doc);
  2711.     void BeforeDocumentSaveAs(CVisioDocument FAR &doc);
  2712.     void FormulaChanged(CVisioCell FAR &Cell);
  2713.     void ConnectionsAdded(CVisioConnects FAR &Connects);
  2714.     void ConnectionsDeleted(CVisioConnects FAR &Connects);
  2715. #endif  //  0
  2716. };
  2717.  
  2718.  
  2719. //  ***************************************************************************
  2720. //  Declaration of class CVisioEWindows
  2721.  
  2722. class FAR CVisioEWindows : public CVisioUnknown
  2723. {
  2724. VW_PUBLIC:
  2725.     CVisioEWindows()
  2726.         : CVisioUnknown() { }
  2727.  
  2728.     CVisioEWindows(const CVisioEWindows& other)
  2729.         : CVisioUnknown(other) { }
  2730.  
  2731.     CVisioEWindows(const EWindows FAR * other, BOOL bAssumeResponsibility= FALSE)
  2732.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2733.  
  2734.     const CVisioEWindows FAR & operator=(const CVisioEWindows FAR &other)
  2735.         {
  2736.         if ( &other != this )
  2737.             CopyIP(other.GetUnknown());
  2738.  
  2739.         return *this;
  2740.         }
  2741.  
  2742.     const CVisioEWindows FAR & operator=(const EWindows FAR * other)
  2743.         {
  2744.         if ( (LPUNKNOWN)other != GetUnknown() )
  2745.             CopyIP((LPUNKNOWN)other);
  2746.  
  2747.         return *this;
  2748.         }
  2749.  
  2750.     virtual ~CVisioEWindows() { }
  2751.  
  2752.     EWindows FAR * GetIP() const { return (EWindows FAR *) GetUnknown(); }
  2753.  
  2754.     operator EWindows FAR * () { return (EWindows FAR *) GetUnknown(); }
  2755.  
  2756. VW_PUBLIC:
  2757. #if 0
  2758.     //  This method list provided for information only...
  2759.     void WindowOpened(CVisioWindow FAR &Window);
  2760.     void SelectionChanged(CVisioWindow FAR &Window);
  2761.     void BeforeWindowClosed(CVisioWindow FAR &Window);
  2762.     void WindowActivated(CVisioWindow FAR &Window);
  2763.     void BeforeWindowSelDelete(CVisioWindow FAR &Window);
  2764.     void BeforeWindowPageTurn(CVisioWindow FAR &Window);
  2765.     void WindowTurnedToPage(CVisioWindow FAR &Window);
  2766. #endif  //  0
  2767. };
  2768.  
  2769.  
  2770. //  ***************************************************************************
  2771. //  Declaration of class CVisioEWindow
  2772.  
  2773. class FAR CVisioEWindow : public CVisioUnknown
  2774. {
  2775. VW_PUBLIC:
  2776.     CVisioEWindow()
  2777.         : CVisioUnknown() { }
  2778.  
  2779.     CVisioEWindow(const CVisioEWindow& other)
  2780.         : CVisioUnknown(other) { }
  2781.  
  2782.     CVisioEWindow(const EWindow FAR * other, BOOL bAssumeResponsibility= FALSE)
  2783.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2784.  
  2785.     const CVisioEWindow FAR & operator=(const CVisioEWindow FAR &other)
  2786.         {
  2787.         if ( &other != this )
  2788.             CopyIP(other.GetUnknown());
  2789.  
  2790.         return *this;
  2791.         }
  2792.  
  2793.     const CVisioEWindow FAR & operator=(const EWindow FAR * other)
  2794.         {
  2795.         if ( (LPUNKNOWN)other != GetUnknown() )
  2796.             CopyIP((LPUNKNOWN)other);
  2797.  
  2798.         return *this;
  2799.         }
  2800.  
  2801.     virtual ~CVisioEWindow() { }
  2802.  
  2803.     EWindow FAR * GetIP() const { return (EWindow FAR *) GetUnknown(); }
  2804.  
  2805.     operator EWindow FAR * () { return (EWindow FAR *) GetUnknown(); }
  2806.  
  2807. VW_PUBLIC:
  2808. #if 0
  2809.     //  This method list provided for information only...
  2810.     void SelectionChanged(CVisioWindow FAR &Window);
  2811.     void BeforeWindowClosed(CVisioWindow FAR &Window);
  2812.     void WindowActivated(CVisioWindow FAR &Window);
  2813.     void BeforeWindowSelDelete(CVisioWindow FAR &Window);
  2814.     void BeforeWindowPageTurn(CVisioWindow FAR &Window);
  2815.     void WindowTurnedToPage(CVisioWindow FAR &Window);
  2816. #endif  //  0
  2817. };
  2818.  
  2819.  
  2820. //  ***************************************************************************
  2821. //  Declaration of class CVisioEDocuments
  2822.  
  2823. class FAR CVisioEDocuments : public CVisioUnknown
  2824. {
  2825. VW_PUBLIC:
  2826.     CVisioEDocuments()
  2827.         : CVisioUnknown() { }
  2828.  
  2829.     CVisioEDocuments(const CVisioEDocuments& other)
  2830.         : CVisioUnknown(other) { }
  2831.  
  2832.     CVisioEDocuments(const EDocuments FAR * other, BOOL bAssumeResponsibility= FALSE)
  2833.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2834.  
  2835.     const CVisioEDocuments FAR & operator=(const CVisioEDocuments FAR &other)
  2836.         {
  2837.         if ( &other != this )
  2838.             CopyIP(other.GetUnknown());
  2839.  
  2840.         return *this;
  2841.         }
  2842.  
  2843.     const CVisioEDocuments FAR & operator=(const EDocuments FAR * other)
  2844.         {
  2845.         if ( (LPUNKNOWN)other != GetUnknown() )
  2846.             CopyIP((LPUNKNOWN)other);
  2847.  
  2848.         return *this;
  2849.         }
  2850.  
  2851.     virtual ~CVisioEDocuments() { }
  2852.  
  2853.     EDocuments FAR * GetIP() const { return (EDocuments FAR *) GetUnknown(); }
  2854.  
  2855.     operator EDocuments FAR * () { return (EDocuments FAR *) GetUnknown(); }
  2856.  
  2857. VW_PUBLIC:
  2858. #if 0
  2859.     //  This method list provided for information only...
  2860.     void DocumentOpened(CVisioDocument FAR &doc);
  2861.     void DocumentCreated(CVisioDocument FAR &doc);
  2862.     void DocumentSaved(CVisioDocument FAR &doc);
  2863.     void DocumentSavedAs(CVisioDocument FAR &doc);
  2864.     void DocumentChanged(CVisioDocument FAR &doc);
  2865.     void BeforeDocumentClose(CVisioDocument FAR &doc);
  2866.     void StyleAdded(CVisioStyle FAR &Style);
  2867.     void StyleChanged(CVisioStyle FAR &Style);
  2868.     void BeforeStyleDelete(CVisioStyle FAR &Style);
  2869.     void MasterAdded(CVisioMaster FAR &Master);
  2870.     void MasterChanged(CVisioMaster FAR &Master);
  2871.     void BeforeMasterDelete(CVisioMaster FAR &Master);
  2872.     void PageAdded(CVisioPage FAR &Page);
  2873.     void PageChanged(CVisioPage FAR &Page);
  2874.     void BeforePageDelete(CVisioPage FAR &Page);
  2875.     void ShapeAdded(CVisioShape FAR &Shape);
  2876.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  2877.     void ShapeChanged(CVisioShape FAR &Shape);
  2878.     void SelectionAdded(CVisioSelection FAR &Selection);
  2879.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  2880.     void TextChanged(CVisioShape FAR &Shape);
  2881.     void CellChanged(CVisioCell FAR &Cell);
  2882.     void RunModeEntered(CVisioDocument FAR &doc);
  2883.     void DesignModeEntered(CVisioDocument FAR &doc);
  2884.     void BeforeDocumentSave(CVisioDocument FAR &doc);
  2885.     void BeforeDocumentSaveAs(CVisioDocument FAR &doc);
  2886.     void FormulaChanged(CVisioCell FAR &Cell);
  2887.     void ConnectionsAdded(CVisioConnects FAR &Connects);
  2888.     void ConnectionsDeleted(CVisioConnects FAR &Connects);
  2889. #endif  //  0
  2890. };
  2891.  
  2892.  
  2893. //  ***************************************************************************
  2894. //  Declaration of class CVisioEStyles
  2895.  
  2896. class FAR CVisioEStyles : public CVisioUnknown
  2897. {
  2898. VW_PUBLIC:
  2899.     CVisioEStyles()
  2900.         : CVisioUnknown() { }
  2901.  
  2902.     CVisioEStyles(const CVisioEStyles& other)
  2903.         : CVisioUnknown(other) { }
  2904.  
  2905.     CVisioEStyles(const EStyles FAR * other, BOOL bAssumeResponsibility= FALSE)
  2906.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2907.  
  2908.     const CVisioEStyles FAR & operator=(const CVisioEStyles FAR &other)
  2909.         {
  2910.         if ( &other != this )
  2911.             CopyIP(other.GetUnknown());
  2912.  
  2913.         return *this;
  2914.         }
  2915.  
  2916.     const CVisioEStyles FAR & operator=(const EStyles FAR * other)
  2917.         {
  2918.         if ( (LPUNKNOWN)other != GetUnknown() )
  2919.             CopyIP((LPUNKNOWN)other);
  2920.  
  2921.         return *this;
  2922.         }
  2923.  
  2924.     virtual ~CVisioEStyles() { }
  2925.  
  2926.     EStyles FAR * GetIP() const { return (EStyles FAR *) GetUnknown(); }
  2927.  
  2928.     operator EStyles FAR * () { return (EStyles FAR *) GetUnknown(); }
  2929.  
  2930. VW_PUBLIC:
  2931. #if 0
  2932.     //  This method list provided for information only...
  2933.     void StyleAdded(CVisioStyle FAR &Style);
  2934.     void StyleChanged(CVisioStyle FAR &Style);
  2935.     void BeforeStyleDelete(CVisioStyle FAR &Style);
  2936. #endif  //  0
  2937. };
  2938.  
  2939.  
  2940. //  ***************************************************************************
  2941. //  Declaration of class CVisioEStyle
  2942.  
  2943. class FAR CVisioEStyle : public CVisioUnknown
  2944. {
  2945. VW_PUBLIC:
  2946.     CVisioEStyle()
  2947.         : CVisioUnknown() { }
  2948.  
  2949.     CVisioEStyle(const CVisioEStyle& other)
  2950.         : CVisioUnknown(other) { }
  2951.  
  2952.     CVisioEStyle(const EStyle FAR * other, BOOL bAssumeResponsibility= FALSE)
  2953.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  2954.  
  2955.     const CVisioEStyle FAR & operator=(const CVisioEStyle FAR &other)
  2956.         {
  2957.         if ( &other != this )
  2958.             CopyIP(other.GetUnknown());
  2959.  
  2960.         return *this;
  2961.         }
  2962.  
  2963.     const CVisioEStyle FAR & operator=(const EStyle FAR * other)
  2964.         {
  2965.         if ( (LPUNKNOWN)other != GetUnknown() )
  2966.             CopyIP((LPUNKNOWN)other);
  2967.  
  2968.         return *this;
  2969.         }
  2970.  
  2971.     virtual ~CVisioEStyle() { }
  2972.  
  2973.     EStyle FAR * GetIP() const { return (EStyle FAR *) GetUnknown(); }
  2974.  
  2975.     operator EStyle FAR * () { return (EStyle FAR *) GetUnknown(); }
  2976.  
  2977. VW_PUBLIC:
  2978. #if 0
  2979.     //  This method list provided for information only...
  2980.     void StyleChanged(CVisioStyle FAR &Style);
  2981.     void BeforeStyleDelete(CVisioStyle FAR &Style);
  2982. #endif  //  0
  2983. };
  2984.  
  2985.  
  2986. //  ***************************************************************************
  2987. //  Declaration of class CVisioEMasters
  2988.  
  2989. class FAR CVisioEMasters : public CVisioUnknown
  2990. {
  2991. VW_PUBLIC:
  2992.     CVisioEMasters()
  2993.         : CVisioUnknown() { }
  2994.  
  2995.     CVisioEMasters(const CVisioEMasters& other)
  2996.         : CVisioUnknown(other) { }
  2997.  
  2998.     CVisioEMasters(const EMasters FAR * other, BOOL bAssumeResponsibility= FALSE)
  2999.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3000.  
  3001.     const CVisioEMasters FAR & operator=(const CVisioEMasters FAR &other)
  3002.         {
  3003.         if ( &other != this )
  3004.             CopyIP(other.GetUnknown());
  3005.  
  3006.         return *this;
  3007.         }
  3008.  
  3009.     const CVisioEMasters FAR & operator=(const EMasters FAR * other)
  3010.         {
  3011.         if ( (LPUNKNOWN)other != GetUnknown() )
  3012.             CopyIP((LPUNKNOWN)other);
  3013.  
  3014.         return *this;
  3015.         }
  3016.  
  3017.     virtual ~CVisioEMasters() { }
  3018.  
  3019.     EMasters FAR * GetIP() const { return (EMasters FAR *) GetUnknown(); }
  3020.  
  3021.     operator EMasters FAR * () { return (EMasters FAR *) GetUnknown(); }
  3022.  
  3023. VW_PUBLIC:
  3024. #if 0
  3025.     //  This method list provided for information only...
  3026.     void MasterAdded(CVisioMaster FAR &Master);
  3027.     void MasterChanged(CVisioMaster FAR &Master);
  3028.     void BeforeMasterDelete(CVisioMaster FAR &Master);
  3029.     void ShapeAdded(CVisioShape FAR &Shape);
  3030.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3031.     void ShapeChanged(CVisioShape FAR &Shape);
  3032.     void SelectionAdded(CVisioSelection FAR &Selection);
  3033.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  3034.     void TextChanged(CVisioShape FAR &Shape);
  3035.     void CellChanged(CVisioCell FAR &Cell);
  3036.     void FormulaChanged(CVisioCell FAR &Cell);
  3037.     void ConnectionsAdded(CVisioConnects FAR &Connects);
  3038.     void ConnectionsDeleted(CVisioConnects FAR &Connects);
  3039. #endif  //  0
  3040. };
  3041.  
  3042.  
  3043. //  ***************************************************************************
  3044. //  Declaration of class CVisioEMaster
  3045.  
  3046. class FAR CVisioEMaster : public CVisioUnknown
  3047. {
  3048. VW_PUBLIC:
  3049.     CVisioEMaster()
  3050.         : CVisioUnknown() { }
  3051.  
  3052.     CVisioEMaster(const CVisioEMaster& other)
  3053.         : CVisioUnknown(other) { }
  3054.  
  3055.     CVisioEMaster(const EMaster FAR * other, BOOL bAssumeResponsibility= FALSE)
  3056.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3057.  
  3058.     const CVisioEMaster FAR & operator=(const CVisioEMaster FAR &other)
  3059.         {
  3060.         if ( &other != this )
  3061.             CopyIP(other.GetUnknown());
  3062.  
  3063.         return *this;
  3064.         }
  3065.  
  3066.     const CVisioEMaster FAR & operator=(const EMaster FAR * other)
  3067.         {
  3068.         if ( (LPUNKNOWN)other != GetUnknown() )
  3069.             CopyIP((LPUNKNOWN)other);
  3070.  
  3071.         return *this;
  3072.         }
  3073.  
  3074.     virtual ~CVisioEMaster() { }
  3075.  
  3076.     EMaster FAR * GetIP() const { return (EMaster FAR *) GetUnknown(); }
  3077.  
  3078.     operator EMaster FAR * () { return (EMaster FAR *) GetUnknown(); }
  3079.  
  3080. VW_PUBLIC:
  3081. #if 0
  3082.     //  This method list provided for information only...
  3083.     void MasterChanged(CVisioMaster FAR &Master);
  3084.     void BeforeMasterDelete(CVisioMaster FAR &Master);
  3085.     void ShapeAdded(CVisioShape FAR &Shape);
  3086.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3087.     void ShapeChanged(CVisioShape FAR &Shape);
  3088.     void SelectionAdded(CVisioSelection FAR &Selection);
  3089.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  3090.     void TextChanged(CVisioShape FAR &Shape);
  3091.     void CellChanged(CVisioCell FAR &Cell);
  3092.     void FormulaChanged(CVisioCell FAR &Cell);
  3093.     void ConnectionsAdded(CVisioConnects FAR &Connects);
  3094.     void ConnectionsDeleted(CVisioConnects FAR &Connects);
  3095. #endif  //  0
  3096. };
  3097.  
  3098.  
  3099. //  ***************************************************************************
  3100. //  Declaration of class CVisioEPages
  3101.  
  3102. class FAR CVisioEPages : public CVisioUnknown
  3103. {
  3104. VW_PUBLIC:
  3105.     CVisioEPages()
  3106.         : CVisioUnknown() { }
  3107.  
  3108.     CVisioEPages(const CVisioEPages& other)
  3109.         : CVisioUnknown(other) { }
  3110.  
  3111.     CVisioEPages(const EPages FAR * other, BOOL bAssumeResponsibility= FALSE)
  3112.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3113.  
  3114.     const CVisioEPages FAR & operator=(const CVisioEPages FAR &other)
  3115.         {
  3116.         if ( &other != this )
  3117.             CopyIP(other.GetUnknown());
  3118.  
  3119.         return *this;
  3120.         }
  3121.  
  3122.     const CVisioEPages FAR & operator=(const EPages FAR * other)
  3123.         {
  3124.         if ( (LPUNKNOWN)other != GetUnknown() )
  3125.             CopyIP((LPUNKNOWN)other);
  3126.  
  3127.         return *this;
  3128.         }
  3129.  
  3130.     virtual ~CVisioEPages() { }
  3131.  
  3132.     EPages FAR * GetIP() const { return (EPages FAR *) GetUnknown(); }
  3133.  
  3134.     operator EPages FAR * () { return (EPages FAR *) GetUnknown(); }
  3135.  
  3136. VW_PUBLIC:
  3137. #if 0
  3138.     //  This method list provided for information only...
  3139.     void PageAdded(CVisioPage FAR &Page);
  3140.     void PageChanged(CVisioPage FAR &Page);
  3141.     void BeforePageDelete(CVisioPage FAR &Page);
  3142.     void ShapeAdded(CVisioShape FAR &Shape);
  3143.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3144.     void ShapeChanged(CVisioShape FAR &Shape);
  3145.     void SelectionAdded(CVisioSelection FAR &Selection);
  3146.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  3147.     void TextChanged(CVisioShape FAR &Shape);
  3148.     void CellChanged(CVisioCell FAR &Cell);
  3149.     void FormulaChanged(CVisioCell FAR &Cell);
  3150.     void ConnectionsAdded(CVisioConnects FAR &Connects);
  3151.     void ConnectionsDeleted(CVisioConnects FAR &Connects);
  3152. #endif  //  0
  3153. };
  3154.  
  3155.  
  3156. //  ***************************************************************************
  3157. //  Declaration of class CVisioEPage
  3158.  
  3159. class FAR CVisioEPage : public CVisioUnknown
  3160. {
  3161. VW_PUBLIC:
  3162.     CVisioEPage()
  3163.         : CVisioUnknown() { }
  3164.  
  3165.     CVisioEPage(const CVisioEPage& other)
  3166.         : CVisioUnknown(other) { }
  3167.  
  3168.     CVisioEPage(const EPage FAR * other, BOOL bAssumeResponsibility= FALSE)
  3169.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3170.  
  3171.     const CVisioEPage FAR & operator=(const CVisioEPage FAR &other)
  3172.         {
  3173.         if ( &other != this )
  3174.             CopyIP(other.GetUnknown());
  3175.  
  3176.         return *this;
  3177.         }
  3178.  
  3179.     const CVisioEPage FAR & operator=(const EPage FAR * other)
  3180.         {
  3181.         if ( (LPUNKNOWN)other != GetUnknown() )
  3182.             CopyIP((LPUNKNOWN)other);
  3183.  
  3184.         return *this;
  3185.         }
  3186.  
  3187.     virtual ~CVisioEPage() { }
  3188.  
  3189.     EPage FAR * GetIP() const { return (EPage FAR *) GetUnknown(); }
  3190.  
  3191.     operator EPage FAR * () { return (EPage FAR *) GetUnknown(); }
  3192.  
  3193. VW_PUBLIC:
  3194. #if 0
  3195.     //  This method list provided for information only...
  3196.     void PageChanged(CVisioPage FAR &Page);
  3197.     void BeforePageDelete(CVisioPage FAR &Page);
  3198.     void ShapeAdded(CVisioShape FAR &Shape);
  3199.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3200.     void ShapeChanged(CVisioShape FAR &Shape);
  3201.     void SelectionAdded(CVisioSelection FAR &Selection);
  3202.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  3203.     void TextChanged(CVisioShape FAR &Shape);
  3204.     void CellChanged(CVisioCell FAR &Cell);
  3205.     void FormulaChanged(CVisioCell FAR &Cell);
  3206.     void ConnectionsAdded(CVisioConnects FAR &Connects);
  3207.     void ConnectionsDeleted(CVisioConnects FAR &Connects);
  3208. #endif  //  0
  3209. };
  3210.  
  3211.  
  3212. //  ***************************************************************************
  3213. //  Declaration of class CVisioEShape
  3214.  
  3215. class FAR CVisioEShape : public CVisioUnknown
  3216. {
  3217. VW_PUBLIC:
  3218.     CVisioEShape()
  3219.         : CVisioUnknown() { }
  3220.  
  3221.     CVisioEShape(const CVisioEShape& other)
  3222.         : CVisioUnknown(other) { }
  3223.  
  3224.     CVisioEShape(const EShape FAR * other, BOOL bAssumeResponsibility= FALSE)
  3225.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3226.  
  3227.     const CVisioEShape FAR & operator=(const CVisioEShape FAR &other)
  3228.         {
  3229.         if ( &other != this )
  3230.             CopyIP(other.GetUnknown());
  3231.  
  3232.         return *this;
  3233.         }
  3234.  
  3235.     const CVisioEShape FAR & operator=(const EShape FAR * other)
  3236.         {
  3237.         if ( (LPUNKNOWN)other != GetUnknown() )
  3238.             CopyIP((LPUNKNOWN)other);
  3239.  
  3240.         return *this;
  3241.         }
  3242.  
  3243.     virtual ~CVisioEShape() { }
  3244.  
  3245.     EShape FAR * GetIP() const { return (EShape FAR *) GetUnknown(); }
  3246.  
  3247.     operator EShape FAR * () { return (EShape FAR *) GetUnknown(); }
  3248.  
  3249. VW_PUBLIC:
  3250. #if 0
  3251.     //  This method list provided for information only...
  3252.     void CellChanged(CVisioCell FAR &Cell);
  3253.     void ShapeAdded(CVisioShape FAR &Shape);
  3254.     void BeforeSelectionDelete(CVisioSelection FAR &Selection);
  3255.     void ShapeChanged(CVisioShape FAR &Shape);
  3256.     void SelectionAdded(CVisioSelection FAR &Selection);
  3257.     void BeforeShapeDelete(CVisioShape FAR &Shape);
  3258.     void TextChanged(CVisioShape FAR &Shape);
  3259.     void FormulaChanged(CVisioCell FAR &Cell);
  3260. #endif  //  0
  3261. };
  3262.  
  3263.  
  3264. //  ***************************************************************************
  3265. //  Declaration of class CVisioECharacters
  3266.  
  3267. class FAR CVisioECharacters : public CVisioUnknown
  3268. {
  3269. VW_PUBLIC:
  3270.     CVisioECharacters()
  3271.         : CVisioUnknown() { }
  3272.  
  3273.     CVisioECharacters(const CVisioECharacters& other)
  3274.         : CVisioUnknown(other) { }
  3275.  
  3276.     CVisioECharacters(const ECharacters FAR * other, BOOL bAssumeResponsibility= FALSE)
  3277.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3278.  
  3279.     const CVisioECharacters FAR & operator=(const CVisioECharacters FAR &other)
  3280.         {
  3281.         if ( &other != this )
  3282.             CopyIP(other.GetUnknown());
  3283.  
  3284.         return *this;
  3285.         }
  3286.  
  3287.     const CVisioECharacters FAR & operator=(const ECharacters FAR * other)
  3288.         {
  3289.         if ( (LPUNKNOWN)other != GetUnknown() )
  3290.             CopyIP((LPUNKNOWN)other);
  3291.  
  3292.         return *this;
  3293.         }
  3294.  
  3295.     virtual ~CVisioECharacters() { }
  3296.  
  3297.     ECharacters FAR * GetIP() const { return (ECharacters FAR *) GetUnknown(); }
  3298.  
  3299.     operator ECharacters FAR * () { return (ECharacters FAR *) GetUnknown(); }
  3300.  
  3301. VW_PUBLIC:
  3302. #if 0
  3303.     //  This method list provided for information only...
  3304.     void TextChanged(CVisioShape FAR &Shape);
  3305. #endif  //  0
  3306. };
  3307.  
  3308.  
  3309. //  ***************************************************************************
  3310. //  Declaration of class CVisioECell
  3311.  
  3312. class FAR CVisioECell : public CVisioUnknown
  3313. {
  3314. VW_PUBLIC:
  3315.     CVisioECell()
  3316.         : CVisioUnknown() { }
  3317.  
  3318.     CVisioECell(const CVisioECell& other)
  3319.         : CVisioUnknown(other) { }
  3320.  
  3321.     CVisioECell(const ECell FAR * other, BOOL bAssumeResponsibility= FALSE)
  3322.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3323.  
  3324.     const CVisioECell FAR & operator=(const CVisioECell FAR &other)
  3325.         {
  3326.         if ( &other != this )
  3327.             CopyIP(other.GetUnknown());
  3328.  
  3329.         return *this;
  3330.         }
  3331.  
  3332.     const CVisioECell FAR & operator=(const ECell FAR * other)
  3333.         {
  3334.         if ( (LPUNKNOWN)other != GetUnknown() )
  3335.             CopyIP((LPUNKNOWN)other);
  3336.  
  3337.         return *this;
  3338.         }
  3339.  
  3340.     virtual ~CVisioECell() { }
  3341.  
  3342.     ECell FAR * GetIP() const { return (ECell FAR *) GetUnknown(); }
  3343.  
  3344.     operator ECell FAR * () { return (ECell FAR *) GetUnknown(); }
  3345.  
  3346. VW_PUBLIC:
  3347. #if 0
  3348.     //  This method list provided for information only...
  3349.     void CellChanged(CVisioCell FAR &Cell);
  3350.     void FormulaChanged(CVisioCell FAR &Cell);
  3351. #endif  //  0
  3352. };
  3353.  
  3354.  
  3355. //  ***************************************************************************
  3356. //  Declaration of class CVisioMenuItem
  3357.  
  3358. class FAR CVisioMenuItem : public CVisioUnknown
  3359. {
  3360. VW_PUBLIC:
  3361.     CVisioMenuItem()
  3362.         : CVisioUnknown() { }
  3363.  
  3364.     CVisioMenuItem(const CVisioMenuItem& other)
  3365.         : CVisioUnknown(other) { }
  3366.  
  3367.     CVisioMenuItem(const IVMenuItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3368.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3369.  
  3370.     const CVisioMenuItem FAR & operator=(const CVisioMenuItem FAR &other)
  3371.         {
  3372.         if ( &other != this )
  3373.             CopyIP(other.GetUnknown());
  3374.  
  3375.         return *this;
  3376.         }
  3377.  
  3378.     const CVisioMenuItem FAR & operator=(const IVMenuItem FAR * other)
  3379.         {
  3380.         if ( (LPUNKNOWN)other != GetUnknown() )
  3381.             CopyIP((LPUNKNOWN)other);
  3382.  
  3383.         return *this;
  3384.         }
  3385.  
  3386.     virtual ~CVisioMenuItem() { }
  3387.  
  3388.     IVMenuItem FAR * GetIP() const { return (IVMenuItem FAR *) GetUnknown(); }
  3389.  
  3390.     operator IVMenuItem FAR * () { return (IVMenuItem FAR *) GetUnknown(); }
  3391.  
  3392. VW_PUBLIC:
  3393.     void Delete();
  3394.     BSTR_HELPER_CLASS FAR Default();
  3395.     long Index();
  3396.     CVisioMenuItems FAR MenuItems();
  3397.     CVisioMenuItems FAR Parent();
  3398.     void putCmdNum(VW_CONST short param01);
  3399.     short getCmdNum();
  3400.     void putHelpContextID(VW_CONST short param01);
  3401.     short getHelpContextID();
  3402.     short IsSeparator();
  3403.     short IsHierarchical();
  3404.     void putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3405.     BSTR_HELPER_CLASS FAR getCaption();
  3406.     void putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3407.     BSTR_HELPER_CLASS FAR getActionText();
  3408.     void putMiniHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3409.     BSTR_HELPER_CLASS FAR getMiniHelp();
  3410.     void putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3411.     BSTR_HELPER_CLASS FAR getAddOnName();
  3412.     void putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3413.     BSTR_HELPER_CLASS FAR getAddOnArgs();
  3414.     void putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3415.     BSTR_HELPER_CLASS FAR getHelpFile();
  3416. };
  3417.  
  3418.  
  3419. //  ***************************************************************************
  3420. //  Declaration of class CVisioIEnumVMenuItem
  3421.  
  3422. class FAR CVisioIEnumVMenuItem : public CVisioUnknown
  3423. {
  3424. VW_PUBLIC:
  3425.     CVisioIEnumVMenuItem()
  3426.         : CVisioUnknown() { }
  3427.  
  3428.     CVisioIEnumVMenuItem(const CVisioIEnumVMenuItem& other)
  3429.         : CVisioUnknown(other) { }
  3430.  
  3431.     CVisioIEnumVMenuItem(const IEnumVMenuItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3432.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3433.  
  3434.     const CVisioIEnumVMenuItem FAR & operator=(const CVisioIEnumVMenuItem FAR &other)
  3435.         {
  3436.         if ( &other != this )
  3437.             CopyIP(other.GetUnknown());
  3438.  
  3439.         return *this;
  3440.         }
  3441.  
  3442.     const CVisioIEnumVMenuItem FAR & operator=(const IEnumVMenuItem FAR * other)
  3443.         {
  3444.         if ( (LPUNKNOWN)other != GetUnknown() )
  3445.             CopyIP((LPUNKNOWN)other);
  3446.  
  3447.         return *this;
  3448.         }
  3449.  
  3450.     virtual ~CVisioIEnumVMenuItem() { }
  3451.  
  3452.     IEnumVMenuItem FAR * GetIP() const { return (IEnumVMenuItem FAR *) GetUnknown(); }
  3453.  
  3454.     operator IEnumVMenuItem FAR * () { return (IEnumVMenuItem FAR *) GetUnknown(); }
  3455.  
  3456. VW_PUBLIC:
  3457. #if 0
  3458.     //  This method list provided for information only...
  3459.     HRESULT Next(long celt, CVisioMenuItem FAR &rgelt, long FAR *pceltFetched);
  3460.     HRESULT Skip(long celt);
  3461.     HRESULT Reset();
  3462.     HRESULT Clone(IEnumVMenuItem FAR * FAR *ppenm);
  3463. #endif  //  0
  3464. };
  3465.  
  3466.  
  3467. //  ***************************************************************************
  3468. //  Declaration of class CVisioMenuItems
  3469.  
  3470. class FAR CVisioMenuItems : public CVisioUnknown
  3471. {
  3472. VW_PUBLIC:
  3473.     CVisioMenuItems()
  3474.         : CVisioUnknown() { }
  3475.  
  3476.     CVisioMenuItems(const CVisioMenuItems& other)
  3477.         : CVisioUnknown(other) { }
  3478.  
  3479.     CVisioMenuItems(const IVMenuItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  3480.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3481.  
  3482.     const CVisioMenuItems FAR & operator=(const CVisioMenuItems FAR &other)
  3483.         {
  3484.         if ( &other != this )
  3485.             CopyIP(other.GetUnknown());
  3486.  
  3487.         return *this;
  3488.         }
  3489.  
  3490.     const CVisioMenuItems FAR & operator=(const IVMenuItems FAR * other)
  3491.         {
  3492.         if ( (LPUNKNOWN)other != GetUnknown() )
  3493.             CopyIP((LPUNKNOWN)other);
  3494.  
  3495.         return *this;
  3496.         }
  3497.  
  3498.     virtual ~CVisioMenuItems() { }
  3499.  
  3500.     IVMenuItems FAR * GetIP() const { return (IVMenuItems FAR *) GetUnknown(); }
  3501.  
  3502.     operator IVMenuItems FAR * () { return (IVMenuItems FAR *) GetUnknown(); }
  3503.  
  3504. VW_PUBLIC:
  3505.     IUnknown FAR *_NewEnum();
  3506.     CVisioMenuItem FAR Item(long lIndex);
  3507.     CVisioMenuItem FAR Add();
  3508.     CVisioMenuItem FAR AddAt(long lIndex);
  3509.     long Count();
  3510.     CVisioMenu FAR Parent();
  3511. };
  3512.  
  3513.  
  3514. //  ***************************************************************************
  3515. //  Declaration of class CVisioMenu
  3516.  
  3517. class FAR CVisioMenu : public CVisioUnknown
  3518. {
  3519. VW_PUBLIC:
  3520.     CVisioMenu()
  3521.         : CVisioUnknown() { }
  3522.  
  3523.     CVisioMenu(const CVisioMenu& other)
  3524.         : CVisioUnknown(other) { }
  3525.  
  3526.     CVisioMenu(const IVMenu FAR * other, BOOL bAssumeResponsibility= FALSE)
  3527.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3528.  
  3529.     const CVisioMenu FAR & operator=(const CVisioMenu FAR &other)
  3530.         {
  3531.         if ( &other != this )
  3532.             CopyIP(other.GetUnknown());
  3533.  
  3534.         return *this;
  3535.         }
  3536.  
  3537.     const CVisioMenu FAR & operator=(const IVMenu FAR * other)
  3538.         {
  3539.         if ( (LPUNKNOWN)other != GetUnknown() )
  3540.             CopyIP((LPUNKNOWN)other);
  3541.  
  3542.         return *this;
  3543.         }
  3544.  
  3545.     virtual ~CVisioMenu() { }
  3546.  
  3547.     IVMenu FAR * GetIP() const { return (IVMenu FAR *) GetUnknown(); }
  3548.  
  3549.     operator IVMenu FAR * () { return (IVMenu FAR *) GetUnknown(); }
  3550.  
  3551. VW_PUBLIC:
  3552.     void Delete();
  3553.     BSTR_HELPER_CLASS FAR Default();
  3554.     void putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3555.     BSTR_HELPER_CLASS FAR getCaption();
  3556.     long Index();
  3557.     void putMDIWindowMenu(VW_CONST short param01);
  3558.     short getMDIWindowMenu();
  3559.     CVisioMenuItems FAR MenuItems();
  3560.     CVisioMenus FAR Parent();
  3561. };
  3562.  
  3563.  
  3564. //  ***************************************************************************
  3565. //  Declaration of class CVisioIEnumVMenu
  3566.  
  3567. class FAR CVisioIEnumVMenu : public CVisioUnknown
  3568. {
  3569. VW_PUBLIC:
  3570.     CVisioIEnumVMenu()
  3571.         : CVisioUnknown() { }
  3572.  
  3573.     CVisioIEnumVMenu(const CVisioIEnumVMenu& other)
  3574.         : CVisioUnknown(other) { }
  3575.  
  3576.     CVisioIEnumVMenu(const IEnumVMenu FAR * other, BOOL bAssumeResponsibility= FALSE)
  3577.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3578.  
  3579.     const CVisioIEnumVMenu FAR & operator=(const CVisioIEnumVMenu FAR &other)
  3580.         {
  3581.         if ( &other != this )
  3582.             CopyIP(other.GetUnknown());
  3583.  
  3584.         return *this;
  3585.         }
  3586.  
  3587.     const CVisioIEnumVMenu FAR & operator=(const IEnumVMenu FAR * other)
  3588.         {
  3589.         if ( (LPUNKNOWN)other != GetUnknown() )
  3590.             CopyIP((LPUNKNOWN)other);
  3591.  
  3592.         return *this;
  3593.         }
  3594.  
  3595.     virtual ~CVisioIEnumVMenu() { }
  3596.  
  3597.     IEnumVMenu FAR * GetIP() const { return (IEnumVMenu FAR *) GetUnknown(); }
  3598.  
  3599.     operator IEnumVMenu FAR * () { return (IEnumVMenu FAR *) GetUnknown(); }
  3600.  
  3601. VW_PUBLIC:
  3602. #if 0
  3603.     //  This method list provided for information only...
  3604.     HRESULT Next(long celt, CVisioMenu FAR &rgelt, long FAR *pceltFetched);
  3605.     HRESULT Skip(long celt);
  3606.     HRESULT Reset();
  3607.     HRESULT Clone(IEnumVMenu FAR * FAR *ppenm);
  3608. #endif  //  0
  3609. };
  3610.  
  3611.  
  3612. //  ***************************************************************************
  3613. //  Declaration of class CVisioMenus
  3614.  
  3615. class FAR CVisioMenus : public CVisioUnknown
  3616. {
  3617. VW_PUBLIC:
  3618.     CVisioMenus()
  3619.         : CVisioUnknown() { }
  3620.  
  3621.     CVisioMenus(const CVisioMenus& other)
  3622.         : CVisioUnknown(other) { }
  3623.  
  3624.     CVisioMenus(const IVMenus FAR * other, BOOL bAssumeResponsibility= FALSE)
  3625.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3626.  
  3627.     const CVisioMenus FAR & operator=(const CVisioMenus FAR &other)
  3628.         {
  3629.         if ( &other != this )
  3630.             CopyIP(other.GetUnknown());
  3631.  
  3632.         return *this;
  3633.         }
  3634.  
  3635.     const CVisioMenus FAR & operator=(const IVMenus FAR * other)
  3636.         {
  3637.         if ( (LPUNKNOWN)other != GetUnknown() )
  3638.             CopyIP((LPUNKNOWN)other);
  3639.  
  3640.         return *this;
  3641.         }
  3642.  
  3643.     virtual ~CVisioMenus() { }
  3644.  
  3645.     IVMenus FAR * GetIP() const { return (IVMenus FAR *) GetUnknown(); }
  3646.  
  3647.     operator IVMenus FAR * () { return (IVMenus FAR *) GetUnknown(); }
  3648.  
  3649. VW_PUBLIC:
  3650.     IUnknown FAR *_NewEnum();
  3651.     CVisioMenu FAR Item(long lIndex);
  3652.     CVisioMenu FAR Add();
  3653.     CVisioMenu FAR AddAt(long lIndex);
  3654.     long Count();
  3655.     CVisioMenuSet FAR Parent();
  3656. };
  3657.  
  3658.  
  3659. //  ***************************************************************************
  3660. //  Declaration of class CVisioMenuSet
  3661.  
  3662. class FAR CVisioMenuSet : public CVisioUnknown
  3663. {
  3664. VW_PUBLIC:
  3665.     CVisioMenuSet()
  3666.         : CVisioUnknown() { }
  3667.  
  3668.     CVisioMenuSet(const CVisioMenuSet& other)
  3669.         : CVisioUnknown(other) { }
  3670.  
  3671.     CVisioMenuSet(const IVMenuSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  3672.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3673.  
  3674.     const CVisioMenuSet FAR & operator=(const CVisioMenuSet FAR &other)
  3675.         {
  3676.         if ( &other != this )
  3677.             CopyIP(other.GetUnknown());
  3678.  
  3679.         return *this;
  3680.         }
  3681.  
  3682.     const CVisioMenuSet FAR & operator=(const IVMenuSet FAR * other)
  3683.         {
  3684.         if ( (LPUNKNOWN)other != GetUnknown() )
  3685.             CopyIP((LPUNKNOWN)other);
  3686.  
  3687.         return *this;
  3688.         }
  3689.  
  3690.     virtual ~CVisioMenuSet() { }
  3691.  
  3692.     IVMenuSet FAR * GetIP() const { return (IVMenuSet FAR *) GetUnknown(); }
  3693.  
  3694.     operator IVMenuSet FAR * () { return (IVMenuSet FAR *) GetUnknown(); }
  3695.  
  3696. VW_PUBLIC:
  3697.     void Delete();
  3698.     BSTR_HELPER_CLASS FAR Default();
  3699.     void putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3700.     BSTR_HELPER_CLASS FAR getCaption();
  3701.     long SetID();
  3702.     CVisioMenus FAR Menus();
  3703.     CVisioMenuSets FAR Parent();
  3704. };
  3705.  
  3706.  
  3707. //  ***************************************************************************
  3708. //  Declaration of class CVisioIEnumVMenuSet
  3709.  
  3710. class FAR CVisioIEnumVMenuSet : public CVisioUnknown
  3711. {
  3712. VW_PUBLIC:
  3713.     CVisioIEnumVMenuSet()
  3714.         : CVisioUnknown() { }
  3715.  
  3716.     CVisioIEnumVMenuSet(const CVisioIEnumVMenuSet& other)
  3717.         : CVisioUnknown(other) { }
  3718.  
  3719.     CVisioIEnumVMenuSet(const IEnumVMenuSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  3720.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3721.  
  3722.     const CVisioIEnumVMenuSet FAR & operator=(const CVisioIEnumVMenuSet FAR &other)
  3723.         {
  3724.         if ( &other != this )
  3725.             CopyIP(other.GetUnknown());
  3726.  
  3727.         return *this;
  3728.         }
  3729.  
  3730.     const CVisioIEnumVMenuSet FAR & operator=(const IEnumVMenuSet FAR * other)
  3731.         {
  3732.         if ( (LPUNKNOWN)other != GetUnknown() )
  3733.             CopyIP((LPUNKNOWN)other);
  3734.  
  3735.         return *this;
  3736.         }
  3737.  
  3738.     virtual ~CVisioIEnumVMenuSet() { }
  3739.  
  3740.     IEnumVMenuSet FAR * GetIP() const { return (IEnumVMenuSet FAR *) GetUnknown(); }
  3741.  
  3742.     operator IEnumVMenuSet FAR * () { return (IEnumVMenuSet FAR *) GetUnknown(); }
  3743.  
  3744. VW_PUBLIC:
  3745. #if 0
  3746.     //  This method list provided for information only...
  3747.     HRESULT Next(long celt, CVisioMenuSet FAR &rgelt, long FAR *pceltFetched);
  3748.     HRESULT Skip(long celt);
  3749.     HRESULT Reset();
  3750.     HRESULT Clone(IEnumVMenuSet FAR * FAR *ppenm);
  3751. #endif  //  0
  3752. };
  3753.  
  3754.  
  3755. //  ***************************************************************************
  3756. //  Declaration of class CVisioMenuSets
  3757.  
  3758. class FAR CVisioMenuSets : public CVisioUnknown
  3759. {
  3760. VW_PUBLIC:
  3761.     CVisioMenuSets()
  3762.         : CVisioUnknown() { }
  3763.  
  3764.     CVisioMenuSets(const CVisioMenuSets& other)
  3765.         : CVisioUnknown(other) { }
  3766.  
  3767.     CVisioMenuSets(const IVMenuSets FAR * other, BOOL bAssumeResponsibility= FALSE)
  3768.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3769.  
  3770.     const CVisioMenuSets FAR & operator=(const CVisioMenuSets FAR &other)
  3771.         {
  3772.         if ( &other != this )
  3773.             CopyIP(other.GetUnknown());
  3774.  
  3775.         return *this;
  3776.         }
  3777.  
  3778.     const CVisioMenuSets FAR & operator=(const IVMenuSets FAR * other)
  3779.         {
  3780.         if ( (LPUNKNOWN)other != GetUnknown() )
  3781.             CopyIP((LPUNKNOWN)other);
  3782.  
  3783.         return *this;
  3784.         }
  3785.  
  3786.     virtual ~CVisioMenuSets() { }
  3787.  
  3788.     IVMenuSets FAR * GetIP() const { return (IVMenuSets FAR *) GetUnknown(); }
  3789.  
  3790.     operator IVMenuSets FAR * () { return (IVMenuSets FAR *) GetUnknown(); }
  3791.  
  3792. VW_PUBLIC:
  3793.     IUnknown FAR *_NewEnum();
  3794.     CVisioMenuSet FAR Item(long lIndex);
  3795.     CVisioMenuSet FAR ItemAtID(long lID);
  3796.     CVisioMenuSet FAR Add();
  3797.     CVisioMenuSet FAR AddAtID(long lID);
  3798.     long Count();
  3799.     CVisioUIObject FAR Parent();
  3800. };
  3801.  
  3802.  
  3803. //  ***************************************************************************
  3804. //  Declaration of class CVisioToolbarItem
  3805.  
  3806. class FAR CVisioToolbarItem : public CVisioUnknown
  3807. {
  3808. VW_PUBLIC:
  3809.     CVisioToolbarItem()
  3810.         : CVisioUnknown() { }
  3811.  
  3812.     CVisioToolbarItem(const CVisioToolbarItem& other)
  3813.         : CVisioUnknown(other) { }
  3814.  
  3815.     CVisioToolbarItem(const IVToolbarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3816.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3817.  
  3818.     const CVisioToolbarItem FAR & operator=(const CVisioToolbarItem FAR &other)
  3819.         {
  3820.         if ( &other != this )
  3821.             CopyIP(other.GetUnknown());
  3822.  
  3823.         return *this;
  3824.         }
  3825.  
  3826.     const CVisioToolbarItem FAR & operator=(const IVToolbarItem FAR * other)
  3827.         {
  3828.         if ( (LPUNKNOWN)other != GetUnknown() )
  3829.             CopyIP((LPUNKNOWN)other);
  3830.  
  3831.         return *this;
  3832.         }
  3833.  
  3834.     virtual ~CVisioToolbarItem() { }
  3835.  
  3836.     IVToolbarItem FAR * GetIP() const { return (IVToolbarItem FAR *) GetUnknown(); }
  3837.  
  3838.     operator IVToolbarItem FAR * () { return (IVToolbarItem FAR *) GetUnknown(); }
  3839.  
  3840. VW_PUBLIC:
  3841.     void Delete();
  3842.     void IconFileName(BSTR_HELPER_CLASS FAR &IconFileName);
  3843.     BSTR_HELPER_CLASS FAR Default();
  3844.     long Index();
  3845.     CVisioToolbarItems FAR Parent();
  3846.     void putCmdNum(VW_CONST short param01);
  3847.     short getCmdNum();
  3848.     void putHelpContextID(VW_CONST short param01);
  3849.     short getHelpContextID();
  3850.     void putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3851.     BSTR_HELPER_CLASS FAR getActionText();
  3852.     void putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3853.     BSTR_HELPER_CLASS FAR getAddOnName();
  3854.     void putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3855.     BSTR_HELPER_CLASS FAR getAddOnArgs();
  3856.     void putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  3857.     BSTR_HELPER_CLASS FAR getHelpFile();
  3858.     void putCntrlType(VW_CONST short param01);
  3859.     short getCntrlType();
  3860.     void putCntrlID(VW_CONST short param01);
  3861.     short getCntrlID();
  3862.     void putTypeSpecific1(VW_CONST short param01);
  3863.     short getTypeSpecific1();
  3864.     void putPriority(VW_CONST short param01);
  3865.     short getPriority();
  3866.     void putSpacing(VW_CONST short param01);
  3867.     short getSpacing();
  3868.     void putTypeSpecific2(VW_CONST short param01);
  3869.     short getTypeSpecific2();
  3870. };
  3871.  
  3872.  
  3873. //  ***************************************************************************
  3874. //  Declaration of class CVisioIEnumVToolbarItem
  3875.  
  3876. class FAR CVisioIEnumVToolbarItem : public CVisioUnknown
  3877. {
  3878. VW_PUBLIC:
  3879.     CVisioIEnumVToolbarItem()
  3880.         : CVisioUnknown() { }
  3881.  
  3882.     CVisioIEnumVToolbarItem(const CVisioIEnumVToolbarItem& other)
  3883.         : CVisioUnknown(other) { }
  3884.  
  3885.     CVisioIEnumVToolbarItem(const IEnumVToolbarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  3886.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3887.  
  3888.     const CVisioIEnumVToolbarItem FAR & operator=(const CVisioIEnumVToolbarItem FAR &other)
  3889.         {
  3890.         if ( &other != this )
  3891.             CopyIP(other.GetUnknown());
  3892.  
  3893.         return *this;
  3894.         }
  3895.  
  3896.     const CVisioIEnumVToolbarItem FAR & operator=(const IEnumVToolbarItem FAR * other)
  3897.         {
  3898.         if ( (LPUNKNOWN)other != GetUnknown() )
  3899.             CopyIP((LPUNKNOWN)other);
  3900.  
  3901.         return *this;
  3902.         }
  3903.  
  3904.     virtual ~CVisioIEnumVToolbarItem() { }
  3905.  
  3906.     IEnumVToolbarItem FAR * GetIP() const { return (IEnumVToolbarItem FAR *) GetUnknown(); }
  3907.  
  3908.     operator IEnumVToolbarItem FAR * () { return (IEnumVToolbarItem FAR *) GetUnknown(); }
  3909.  
  3910. VW_PUBLIC:
  3911. #if 0
  3912.     //  This method list provided for information only...
  3913.     HRESULT Next(long celt, CVisioToolbarItem FAR &rgelt, long FAR *pceltFetched);
  3914.     HRESULT Skip(long celt);
  3915.     HRESULT Reset();
  3916.     HRESULT Clone(IEnumVToolbarItem FAR * FAR *ppenm);
  3917. #endif  //  0
  3918. };
  3919.  
  3920.  
  3921. //  ***************************************************************************
  3922. //  Declaration of class CVisioToolbarItems
  3923.  
  3924. class FAR CVisioToolbarItems : public CVisioUnknown
  3925. {
  3926. VW_PUBLIC:
  3927.     CVisioToolbarItems()
  3928.         : CVisioUnknown() { }
  3929.  
  3930.     CVisioToolbarItems(const CVisioToolbarItems& other)
  3931.         : CVisioUnknown(other) { }
  3932.  
  3933.     CVisioToolbarItems(const IVToolbarItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  3934.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3935.  
  3936.     const CVisioToolbarItems FAR & operator=(const CVisioToolbarItems FAR &other)
  3937.         {
  3938.         if ( &other != this )
  3939.             CopyIP(other.GetUnknown());
  3940.  
  3941.         return *this;
  3942.         }
  3943.  
  3944.     const CVisioToolbarItems FAR & operator=(const IVToolbarItems FAR * other)
  3945.         {
  3946.         if ( (LPUNKNOWN)other != GetUnknown() )
  3947.             CopyIP((LPUNKNOWN)other);
  3948.  
  3949.         return *this;
  3950.         }
  3951.  
  3952.     virtual ~CVisioToolbarItems() { }
  3953.  
  3954.     IVToolbarItems FAR * GetIP() const { return (IVToolbarItems FAR *) GetUnknown(); }
  3955.  
  3956.     operator IVToolbarItems FAR * () { return (IVToolbarItems FAR *) GetUnknown(); }
  3957.  
  3958. VW_PUBLIC:
  3959.     IUnknown FAR *_NewEnum();
  3960.     CVisioToolbarItem FAR Item(long lIndex);
  3961.     CVisioToolbarItem FAR Add();
  3962.     CVisioToolbarItem FAR AddAt(long lIndex);
  3963.     long Count();
  3964.     CVisioToolbar FAR Parent();
  3965. };
  3966.  
  3967.  
  3968. //  ***************************************************************************
  3969. //  Declaration of class CVisioToolbar
  3970.  
  3971. class FAR CVisioToolbar : public CVisioUnknown
  3972. {
  3973. VW_PUBLIC:
  3974.     CVisioToolbar()
  3975.         : CVisioUnknown() { }
  3976.  
  3977.     CVisioToolbar(const CVisioToolbar& other)
  3978.         : CVisioUnknown(other) { }
  3979.  
  3980.     CVisioToolbar(const IVToolbar FAR * other, BOOL bAssumeResponsibility= FALSE)
  3981.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  3982.  
  3983.     const CVisioToolbar FAR & operator=(const CVisioToolbar FAR &other)
  3984.         {
  3985.         if ( &other != this )
  3986.             CopyIP(other.GetUnknown());
  3987.  
  3988.         return *this;
  3989.         }
  3990.  
  3991.     const CVisioToolbar FAR & operator=(const IVToolbar FAR * other)
  3992.         {
  3993.         if ( (LPUNKNOWN)other != GetUnknown() )
  3994.             CopyIP((LPUNKNOWN)other);
  3995.  
  3996.         return *this;
  3997.         }
  3998.  
  3999.     virtual ~CVisioToolbar() { }
  4000.  
  4001.     IVToolbar FAR * GetIP() const { return (IVToolbar FAR *) GetUnknown(); }
  4002.  
  4003.     operator IVToolbar FAR * () { return (IVToolbar FAR *) GetUnknown(); }
  4004.  
  4005. VW_PUBLIC:
  4006.     void Delete();
  4007.     BSTR_HELPER_CLASS FAR Default();
  4008.     void putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4009.     BSTR_HELPER_CLASS FAR getCaption();
  4010.     long Index();
  4011.     CVisioToolbarItems FAR ToolbarItems();
  4012.     CVisioToolbars FAR Parent();
  4013. };
  4014.  
  4015.  
  4016. //  ***************************************************************************
  4017. //  Declaration of class CVisioIEnumVToolbar
  4018.  
  4019. class FAR CVisioIEnumVToolbar : public CVisioUnknown
  4020. {
  4021. VW_PUBLIC:
  4022.     CVisioIEnumVToolbar()
  4023.         : CVisioUnknown() { }
  4024.  
  4025.     CVisioIEnumVToolbar(const CVisioIEnumVToolbar& other)
  4026.         : CVisioUnknown(other) { }
  4027.  
  4028.     CVisioIEnumVToolbar(const IEnumVToolbar FAR * other, BOOL bAssumeResponsibility= FALSE)
  4029.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4030.  
  4031.     const CVisioIEnumVToolbar FAR & operator=(const CVisioIEnumVToolbar FAR &other)
  4032.         {
  4033.         if ( &other != this )
  4034.             CopyIP(other.GetUnknown());
  4035.  
  4036.         return *this;
  4037.         }
  4038.  
  4039.     const CVisioIEnumVToolbar FAR & operator=(const IEnumVToolbar FAR * other)
  4040.         {
  4041.         if ( (LPUNKNOWN)other != GetUnknown() )
  4042.             CopyIP((LPUNKNOWN)other);
  4043.  
  4044.         return *this;
  4045.         }
  4046.  
  4047.     virtual ~CVisioIEnumVToolbar() { }
  4048.  
  4049.     IEnumVToolbar FAR * GetIP() const { return (IEnumVToolbar FAR *) GetUnknown(); }
  4050.  
  4051.     operator IEnumVToolbar FAR * () { return (IEnumVToolbar FAR *) GetUnknown(); }
  4052.  
  4053. VW_PUBLIC:
  4054. #if 0
  4055.     //  This method list provided for information only...
  4056.     HRESULT Next(long celt, CVisioToolbar FAR &rgelt, long FAR *pceltFetched);
  4057.     HRESULT Skip(long celt);
  4058.     HRESULT Reset();
  4059.     HRESULT Clone(IEnumVToolbar FAR * FAR *ppenm);
  4060. #endif  //  0
  4061. };
  4062.  
  4063.  
  4064. //  ***************************************************************************
  4065. //  Declaration of class CVisioToolbars
  4066.  
  4067. class FAR CVisioToolbars : public CVisioUnknown
  4068. {
  4069. VW_PUBLIC:
  4070.     CVisioToolbars()
  4071.         : CVisioUnknown() { }
  4072.  
  4073.     CVisioToolbars(const CVisioToolbars& other)
  4074.         : CVisioUnknown(other) { }
  4075.  
  4076.     CVisioToolbars(const IVToolbars FAR * other, BOOL bAssumeResponsibility= FALSE)
  4077.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4078.  
  4079.     const CVisioToolbars FAR & operator=(const CVisioToolbars FAR &other)
  4080.         {
  4081.         if ( &other != this )
  4082.             CopyIP(other.GetUnknown());
  4083.  
  4084.         return *this;
  4085.         }
  4086.  
  4087.     const CVisioToolbars FAR & operator=(const IVToolbars FAR * other)
  4088.         {
  4089.         if ( (LPUNKNOWN)other != GetUnknown() )
  4090.             CopyIP((LPUNKNOWN)other);
  4091.  
  4092.         return *this;
  4093.         }
  4094.  
  4095.     virtual ~CVisioToolbars() { }
  4096.  
  4097.     IVToolbars FAR * GetIP() const { return (IVToolbars FAR *) GetUnknown(); }
  4098.  
  4099.     operator IVToolbars FAR * () { return (IVToolbars FAR *) GetUnknown(); }
  4100.  
  4101. VW_PUBLIC:
  4102.     IUnknown FAR *_NewEnum();
  4103.     CVisioToolbar FAR Item(long lIndex);
  4104.     CVisioToolbar FAR Add();
  4105.     CVisioToolbar FAR AddAt(long lIndex);
  4106.     long Count();
  4107.     CVisioToolbarSet FAR Parent();
  4108. };
  4109.  
  4110.  
  4111. //  ***************************************************************************
  4112. //  Declaration of class CVisioToolbarSet
  4113.  
  4114. class FAR CVisioToolbarSet : public CVisioUnknown
  4115. {
  4116. VW_PUBLIC:
  4117.     CVisioToolbarSet()
  4118.         : CVisioUnknown() { }
  4119.  
  4120.     CVisioToolbarSet(const CVisioToolbarSet& other)
  4121.         : CVisioUnknown(other) { }
  4122.  
  4123.     CVisioToolbarSet(const IVToolbarSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  4124.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4125.  
  4126.     const CVisioToolbarSet FAR & operator=(const CVisioToolbarSet FAR &other)
  4127.         {
  4128.         if ( &other != this )
  4129.             CopyIP(other.GetUnknown());
  4130.  
  4131.         return *this;
  4132.         }
  4133.  
  4134.     const CVisioToolbarSet FAR & operator=(const IVToolbarSet FAR * other)
  4135.         {
  4136.         if ( (LPUNKNOWN)other != GetUnknown() )
  4137.             CopyIP((LPUNKNOWN)other);
  4138.  
  4139.         return *this;
  4140.         }
  4141.  
  4142.     virtual ~CVisioToolbarSet() { }
  4143.  
  4144.     IVToolbarSet FAR * GetIP() const { return (IVToolbarSet FAR *) GetUnknown(); }
  4145.  
  4146.     operator IVToolbarSet FAR * () { return (IVToolbarSet FAR *) GetUnknown(); }
  4147.  
  4148. VW_PUBLIC:
  4149.     void Delete();
  4150.     BSTR_HELPER_CLASS FAR Default();
  4151.     void putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4152.     BSTR_HELPER_CLASS FAR getCaption();
  4153.     long SetID();
  4154.     CVisioToolbars FAR Toolbars();
  4155.     CVisioToolbarSets FAR Parent();
  4156. };
  4157.  
  4158.  
  4159. //  ***************************************************************************
  4160. //  Declaration of class CVisioIEnumVToolbarSet
  4161.  
  4162. class FAR CVisioIEnumVToolbarSet : public CVisioUnknown
  4163. {
  4164. VW_PUBLIC:
  4165.     CVisioIEnumVToolbarSet()
  4166.         : CVisioUnknown() { }
  4167.  
  4168.     CVisioIEnumVToolbarSet(const CVisioIEnumVToolbarSet& other)
  4169.         : CVisioUnknown(other) { }
  4170.  
  4171.     CVisioIEnumVToolbarSet(const IEnumVToolbarSet FAR * other, BOOL bAssumeResponsibility= FALSE)
  4172.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4173.  
  4174.     const CVisioIEnumVToolbarSet FAR & operator=(const CVisioIEnumVToolbarSet FAR &other)
  4175.         {
  4176.         if ( &other != this )
  4177.             CopyIP(other.GetUnknown());
  4178.  
  4179.         return *this;
  4180.         }
  4181.  
  4182.     const CVisioIEnumVToolbarSet FAR & operator=(const IEnumVToolbarSet FAR * other)
  4183.         {
  4184.         if ( (LPUNKNOWN)other != GetUnknown() )
  4185.             CopyIP((LPUNKNOWN)other);
  4186.  
  4187.         return *this;
  4188.         }
  4189.  
  4190.     virtual ~CVisioIEnumVToolbarSet() { }
  4191.  
  4192.     IEnumVToolbarSet FAR * GetIP() const { return (IEnumVToolbarSet FAR *) GetUnknown(); }
  4193.  
  4194.     operator IEnumVToolbarSet FAR * () { return (IEnumVToolbarSet FAR *) GetUnknown(); }
  4195.  
  4196. VW_PUBLIC:
  4197. #if 0
  4198.     //  This method list provided for information only...
  4199.     HRESULT Next(long celt, CVisioToolbarSet FAR &rgelt, long FAR *pceltFetched);
  4200.     HRESULT Skip(long celt);
  4201.     HRESULT Reset();
  4202.     HRESULT Clone(IEnumVToolbarSet FAR * FAR *ppenm);
  4203. #endif  //  0
  4204. };
  4205.  
  4206.  
  4207. //  ***************************************************************************
  4208. //  Declaration of class CVisioToolbarSets
  4209.  
  4210. class FAR CVisioToolbarSets : public CVisioUnknown
  4211. {
  4212. VW_PUBLIC:
  4213.     CVisioToolbarSets()
  4214.         : CVisioUnknown() { }
  4215.  
  4216.     CVisioToolbarSets(const CVisioToolbarSets& other)
  4217.         : CVisioUnknown(other) { }
  4218.  
  4219.     CVisioToolbarSets(const IVToolbarSets FAR * other, BOOL bAssumeResponsibility= FALSE)
  4220.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4221.  
  4222.     const CVisioToolbarSets FAR & operator=(const CVisioToolbarSets FAR &other)
  4223.         {
  4224.         if ( &other != this )
  4225.             CopyIP(other.GetUnknown());
  4226.  
  4227.         return *this;
  4228.         }
  4229.  
  4230.     const CVisioToolbarSets FAR & operator=(const IVToolbarSets FAR * other)
  4231.         {
  4232.         if ( (LPUNKNOWN)other != GetUnknown() )
  4233.             CopyIP((LPUNKNOWN)other);
  4234.  
  4235.         return *this;
  4236.         }
  4237.  
  4238.     virtual ~CVisioToolbarSets() { }
  4239.  
  4240.     IVToolbarSets FAR * GetIP() const { return (IVToolbarSets FAR *) GetUnknown(); }
  4241.  
  4242.     operator IVToolbarSets FAR * () { return (IVToolbarSets FAR *) GetUnknown(); }
  4243.  
  4244. VW_PUBLIC:
  4245.     IUnknown FAR *_NewEnum();
  4246.     CVisioToolbarSet FAR Item(long lIndex);
  4247.     CVisioToolbarSet FAR ItemAtID(long lID);
  4248.     CVisioToolbarSet FAR Add();
  4249.     CVisioToolbarSet FAR AddAtID(long lID);
  4250.     long Count();
  4251.     CVisioUIObject FAR Parent();
  4252. };
  4253.  
  4254.  
  4255. //  ***************************************************************************
  4256. //  Declaration of class CVisioStatusBarItem
  4257.  
  4258. class FAR CVisioStatusBarItem : public CVisioUnknown
  4259. {
  4260. VW_PUBLIC:
  4261.     CVisioStatusBarItem()
  4262.         : CVisioUnknown() { }
  4263.  
  4264.     CVisioStatusBarItem(const CVisioStatusBarItem& other)
  4265.         : CVisioUnknown(other) { }
  4266.  
  4267.     CVisioStatusBarItem(const IVStatusBarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4268.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4269.  
  4270.     const CVisioStatusBarItem FAR & operator=(const CVisioStatusBarItem FAR &other)
  4271.         {
  4272.         if ( &other != this )
  4273.             CopyIP(other.GetUnknown());
  4274.  
  4275.         return *this;
  4276.         }
  4277.  
  4278.     const CVisioStatusBarItem FAR & operator=(const IVStatusBarItem FAR * other)
  4279.         {
  4280.         if ( (LPUNKNOWN)other != GetUnknown() )
  4281.             CopyIP((LPUNKNOWN)other);
  4282.  
  4283.         return *this;
  4284.         }
  4285.  
  4286.     virtual ~CVisioStatusBarItem() { }
  4287.  
  4288.     IVStatusBarItem FAR * GetIP() const { return (IVStatusBarItem FAR *) GetUnknown(); }
  4289.  
  4290.     operator IVStatusBarItem FAR * () { return (IVStatusBarItem FAR *) GetUnknown(); }
  4291.  
  4292. VW_PUBLIC:
  4293.     void Delete();
  4294.     void IconFileName(BSTR_HELPER_CLASS FAR &IconFileName);
  4295.     BSTR_HELPER_CLASS FAR Default();
  4296.     long Index();
  4297.     CVisioStatusBarItems FAR Parent();
  4298.     void putCmdNum(VW_CONST short param01);
  4299.     short getCmdNum();
  4300.     void putHelpContextID(VW_CONST short param01);
  4301.     short getHelpContextID();
  4302.     void putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4303.     BSTR_HELPER_CLASS FAR getActionText();
  4304.     void putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4305.     BSTR_HELPER_CLASS FAR getAddOnName();
  4306.     void putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4307.     BSTR_HELPER_CLASS FAR getAddOnArgs();
  4308.     void putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4309.     BSTR_HELPER_CLASS FAR getHelpFile();
  4310.     void putCntrlType(VW_CONST short param01);
  4311.     short getCntrlType();
  4312.     void putCntrlID(VW_CONST short param01);
  4313.     short getCntrlID();
  4314.     void putTypeSpecific1(VW_CONST short param01);
  4315.     short getTypeSpecific1();
  4316.     void putPriority(VW_CONST short param01);
  4317.     short getPriority();
  4318.     void putSpacing(VW_CONST short param01);
  4319.     short getSpacing();
  4320.     void putTypeSpecific2(VW_CONST short param01);
  4321.     short getTypeSpecific2();
  4322. };
  4323.  
  4324.  
  4325. //  ***************************************************************************
  4326. //  Declaration of class CVisioIEnumVStatusBarItem
  4327.  
  4328. class FAR CVisioIEnumVStatusBarItem : public CVisioUnknown
  4329. {
  4330. VW_PUBLIC:
  4331.     CVisioIEnumVStatusBarItem()
  4332.         : CVisioUnknown() { }
  4333.  
  4334.     CVisioIEnumVStatusBarItem(const CVisioIEnumVStatusBarItem& other)
  4335.         : CVisioUnknown(other) { }
  4336.  
  4337.     CVisioIEnumVStatusBarItem(const IEnumVStatusBarItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4338.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4339.  
  4340.     const CVisioIEnumVStatusBarItem FAR & operator=(const CVisioIEnumVStatusBarItem FAR &other)
  4341.         {
  4342.         if ( &other != this )
  4343.             CopyIP(other.GetUnknown());
  4344.  
  4345.         return *this;
  4346.         }
  4347.  
  4348.     const CVisioIEnumVStatusBarItem FAR & operator=(const IEnumVStatusBarItem FAR * other)
  4349.         {
  4350.         if ( (LPUNKNOWN)other != GetUnknown() )
  4351.             CopyIP((LPUNKNOWN)other);
  4352.  
  4353.         return *this;
  4354.         }
  4355.  
  4356.     virtual ~CVisioIEnumVStatusBarItem() { }
  4357.  
  4358.     IEnumVStatusBarItem FAR * GetIP() const { return (IEnumVStatusBarItem FAR *) GetUnknown(); }
  4359.  
  4360.     operator IEnumVStatusBarItem FAR * () { return (IEnumVStatusBarItem FAR *) GetUnknown(); }
  4361.  
  4362. VW_PUBLIC:
  4363. #if 0
  4364.     //  This method list provided for information only...
  4365.     HRESULT Next(long celt, CVisioStatusBarItem FAR &rgelt, long FAR *pceltFetched);
  4366.     HRESULT Skip(long celt);
  4367.     HRESULT Reset();
  4368.     HRESULT Clone(IEnumVStatusBarItem FAR * FAR *ppenm);
  4369. #endif  //  0
  4370. };
  4371.  
  4372.  
  4373. //  ***************************************************************************
  4374. //  Declaration of class CVisioStatusBarItems
  4375.  
  4376. class FAR CVisioStatusBarItems : public CVisioUnknown
  4377. {
  4378. VW_PUBLIC:
  4379.     CVisioStatusBarItems()
  4380.         : CVisioUnknown() { }
  4381.  
  4382.     CVisioStatusBarItems(const CVisioStatusBarItems& other)
  4383.         : CVisioUnknown(other) { }
  4384.  
  4385.     CVisioStatusBarItems(const IVStatusBarItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  4386.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4387.  
  4388.     const CVisioStatusBarItems FAR & operator=(const CVisioStatusBarItems FAR &other)
  4389.         {
  4390.         if ( &other != this )
  4391.             CopyIP(other.GetUnknown());
  4392.  
  4393.         return *this;
  4394.         }
  4395.  
  4396.     const CVisioStatusBarItems FAR & operator=(const IVStatusBarItems FAR * other)
  4397.         {
  4398.         if ( (LPUNKNOWN)other != GetUnknown() )
  4399.             CopyIP((LPUNKNOWN)other);
  4400.  
  4401.         return *this;
  4402.         }
  4403.  
  4404.     virtual ~CVisioStatusBarItems() { }
  4405.  
  4406.     IVStatusBarItems FAR * GetIP() const { return (IVStatusBarItems FAR *) GetUnknown(); }
  4407.  
  4408.     operator IVStatusBarItems FAR * () { return (IVStatusBarItems FAR *) GetUnknown(); }
  4409.  
  4410. VW_PUBLIC:
  4411.     IUnknown FAR *_NewEnum();
  4412.     CVisioStatusBarItem FAR Item(long lIndex);
  4413.     CVisioStatusBarItem FAR Add();
  4414.     CVisioStatusBarItem FAR AddAt(long lIndex);
  4415.     long Count();
  4416.     CVisioStatusBar FAR Parent();
  4417. };
  4418.  
  4419.  
  4420. //  ***************************************************************************
  4421. //  Declaration of class CVisioStatusBar
  4422.  
  4423. class FAR CVisioStatusBar : public CVisioUnknown
  4424. {
  4425. VW_PUBLIC:
  4426.     CVisioStatusBar()
  4427.         : CVisioUnknown() { }
  4428.  
  4429.     CVisioStatusBar(const CVisioStatusBar& other)
  4430.         : CVisioUnknown(other) { }
  4431.  
  4432.     CVisioStatusBar(const IVStatusBar FAR * other, BOOL bAssumeResponsibility= FALSE)
  4433.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4434.  
  4435.     const CVisioStatusBar FAR & operator=(const CVisioStatusBar FAR &other)
  4436.         {
  4437.         if ( &other != this )
  4438.             CopyIP(other.GetUnknown());
  4439.  
  4440.         return *this;
  4441.         }
  4442.  
  4443.     const CVisioStatusBar FAR & operator=(const IVStatusBar FAR * other)
  4444.         {
  4445.         if ( (LPUNKNOWN)other != GetUnknown() )
  4446.             CopyIP((LPUNKNOWN)other);
  4447.  
  4448.         return *this;
  4449.         }
  4450.  
  4451.     virtual ~CVisioStatusBar() { }
  4452.  
  4453.     IVStatusBar FAR * GetIP() const { return (IVStatusBar FAR *) GetUnknown(); }
  4454.  
  4455.     operator IVStatusBar FAR * () { return (IVStatusBar FAR *) GetUnknown(); }
  4456.  
  4457. VW_PUBLIC:
  4458.     void Delete();
  4459.     BSTR_HELPER_CLASS FAR Default();
  4460.     void putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4461.     BSTR_HELPER_CLASS FAR getCaption();
  4462.     long SetID();
  4463.     CVisioStatusBarItems FAR StatusBarItems();
  4464.     CVisioStatusBars FAR Parent();
  4465. };
  4466.  
  4467.  
  4468. //  ***************************************************************************
  4469. //  Declaration of class CVisioIEnumVStatusBar
  4470.  
  4471. class FAR CVisioIEnumVStatusBar : public CVisioUnknown
  4472. {
  4473. VW_PUBLIC:
  4474.     CVisioIEnumVStatusBar()
  4475.         : CVisioUnknown() { }
  4476.  
  4477.     CVisioIEnumVStatusBar(const CVisioIEnumVStatusBar& other)
  4478.         : CVisioUnknown(other) { }
  4479.  
  4480.     CVisioIEnumVStatusBar(const IEnumVStatusBar FAR * other, BOOL bAssumeResponsibility= FALSE)
  4481.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4482.  
  4483.     const CVisioIEnumVStatusBar FAR & operator=(const CVisioIEnumVStatusBar FAR &other)
  4484.         {
  4485.         if ( &other != this )
  4486.             CopyIP(other.GetUnknown());
  4487.  
  4488.         return *this;
  4489.         }
  4490.  
  4491.     const CVisioIEnumVStatusBar FAR & operator=(const IEnumVStatusBar FAR * other)
  4492.         {
  4493.         if ( (LPUNKNOWN)other != GetUnknown() )
  4494.             CopyIP((LPUNKNOWN)other);
  4495.  
  4496.         return *this;
  4497.         }
  4498.  
  4499.     virtual ~CVisioIEnumVStatusBar() { }
  4500.  
  4501.     IEnumVStatusBar FAR * GetIP() const { return (IEnumVStatusBar FAR *) GetUnknown(); }
  4502.  
  4503.     operator IEnumVStatusBar FAR * () { return (IEnumVStatusBar FAR *) GetUnknown(); }
  4504.  
  4505. VW_PUBLIC:
  4506. #if 0
  4507.     //  This method list provided for information only...
  4508.     HRESULT Next(long celt, CVisioStatusBar FAR &rgelt, long FAR *pceltFetched);
  4509.     HRESULT Skip(long celt);
  4510.     HRESULT Reset();
  4511.     HRESULT Clone(IEnumVStatusBar FAR * FAR *ppenm);
  4512. #endif  //  0
  4513. };
  4514.  
  4515.  
  4516. //  ***************************************************************************
  4517. //  Declaration of class CVisioStatusBars
  4518.  
  4519. class FAR CVisioStatusBars : public CVisioUnknown
  4520. {
  4521. VW_PUBLIC:
  4522.     CVisioStatusBars()
  4523.         : CVisioUnknown() { }
  4524.  
  4525.     CVisioStatusBars(const CVisioStatusBars& other)
  4526.         : CVisioUnknown(other) { }
  4527.  
  4528.     CVisioStatusBars(const IVStatusBars FAR * other, BOOL bAssumeResponsibility= FALSE)
  4529.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4530.  
  4531.     const CVisioStatusBars FAR & operator=(const CVisioStatusBars FAR &other)
  4532.         {
  4533.         if ( &other != this )
  4534.             CopyIP(other.GetUnknown());
  4535.  
  4536.         return *this;
  4537.         }
  4538.  
  4539.     const CVisioStatusBars FAR & operator=(const IVStatusBars FAR * other)
  4540.         {
  4541.         if ( (LPUNKNOWN)other != GetUnknown() )
  4542.             CopyIP((LPUNKNOWN)other);
  4543.  
  4544.         return *this;
  4545.         }
  4546.  
  4547.     virtual ~CVisioStatusBars() { }
  4548.  
  4549.     IVStatusBars FAR * GetIP() const { return (IVStatusBars FAR *) GetUnknown(); }
  4550.  
  4551.     operator IVStatusBars FAR * () { return (IVStatusBars FAR *) GetUnknown(); }
  4552.  
  4553. VW_PUBLIC:
  4554.     IUnknown FAR *_NewEnum();
  4555.     CVisioStatusBar FAR Item(long lIndex);
  4556.     CVisioStatusBar FAR ItemAtID(long lID);
  4557.     CVisioStatusBar FAR Add();
  4558.     CVisioStatusBar FAR AddAtID(long lID);
  4559.     long Count();
  4560.     CVisioUIObject FAR Parent();
  4561. };
  4562.  
  4563.  
  4564. //  ***************************************************************************
  4565. //  Declaration of class CVisioAccelItem
  4566.  
  4567. class FAR CVisioAccelItem : public CVisioUnknown
  4568. {
  4569. VW_PUBLIC:
  4570.     CVisioAccelItem()
  4571.         : CVisioUnknown() { }
  4572.  
  4573.     CVisioAccelItem(const CVisioAccelItem& other)
  4574.         : CVisioUnknown(other) { }
  4575.  
  4576.     CVisioAccelItem(const IVAccelItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4577.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4578.  
  4579.     const CVisioAccelItem FAR & operator=(const CVisioAccelItem FAR &other)
  4580.         {
  4581.         if ( &other != this )
  4582.             CopyIP(other.GetUnknown());
  4583.  
  4584.         return *this;
  4585.         }
  4586.  
  4587.     const CVisioAccelItem FAR & operator=(const IVAccelItem FAR * other)
  4588.         {
  4589.         if ( (LPUNKNOWN)other != GetUnknown() )
  4590.             CopyIP((LPUNKNOWN)other);
  4591.  
  4592.         return *this;
  4593.         }
  4594.  
  4595.     virtual ~CVisioAccelItem() { }
  4596.  
  4597.     IVAccelItem FAR * GetIP() const { return (IVAccelItem FAR *) GetUnknown(); }
  4598.  
  4599.     operator IVAccelItem FAR * () { return (IVAccelItem FAR *) GetUnknown(); }
  4600.  
  4601. VW_PUBLIC:
  4602.     void Delete();
  4603.     short Default();
  4604.     void putCmdNum(VW_CONST short param01);
  4605.     short getCmdNum();
  4606.     void putKey(VW_CONST short param01);
  4607.     short getKey();
  4608.     void putAlt(VW_CONST short param01);
  4609.     short getAlt();
  4610.     void putShift(VW_CONST short param01);
  4611.     short getShift();
  4612.     void putControl(VW_CONST short param01);
  4613.     short getControl();
  4614.     CVisioAccelItems FAR Parent();
  4615. };
  4616.  
  4617.  
  4618. //  ***************************************************************************
  4619. //  Declaration of class CVisioIEnumVAccelItem
  4620.  
  4621. class FAR CVisioIEnumVAccelItem : public CVisioUnknown
  4622. {
  4623. VW_PUBLIC:
  4624.     CVisioIEnumVAccelItem()
  4625.         : CVisioUnknown() { }
  4626.  
  4627.     CVisioIEnumVAccelItem(const CVisioIEnumVAccelItem& other)
  4628.         : CVisioUnknown(other) { }
  4629.  
  4630.     CVisioIEnumVAccelItem(const IEnumVAccelItem FAR * other, BOOL bAssumeResponsibility= FALSE)
  4631.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4632.  
  4633.     const CVisioIEnumVAccelItem FAR & operator=(const CVisioIEnumVAccelItem FAR &other)
  4634.         {
  4635.         if ( &other != this )
  4636.             CopyIP(other.GetUnknown());
  4637.  
  4638.         return *this;
  4639.         }
  4640.  
  4641.     const CVisioIEnumVAccelItem FAR & operator=(const IEnumVAccelItem FAR * other)
  4642.         {
  4643.         if ( (LPUNKNOWN)other != GetUnknown() )
  4644.             CopyIP((LPUNKNOWN)other);
  4645.  
  4646.         return *this;
  4647.         }
  4648.  
  4649.     virtual ~CVisioIEnumVAccelItem() { }
  4650.  
  4651.     IEnumVAccelItem FAR * GetIP() const { return (IEnumVAccelItem FAR *) GetUnknown(); }
  4652.  
  4653.     operator IEnumVAccelItem FAR * () { return (IEnumVAccelItem FAR *) GetUnknown(); }
  4654.  
  4655. VW_PUBLIC:
  4656. #if 0
  4657.     //  This method list provided for information only...
  4658.     HRESULT Next(long celt, CVisioAccelItem FAR &rgelt, long FAR *pceltFetched);
  4659.     HRESULT Skip(long celt);
  4660.     HRESULT Reset();
  4661.     HRESULT Clone(IEnumVAccelItem FAR * FAR *ppenm);
  4662. #endif  //  0
  4663. };
  4664.  
  4665.  
  4666. //  ***************************************************************************
  4667. //  Declaration of class CVisioAccelItems
  4668.  
  4669. class FAR CVisioAccelItems : public CVisioUnknown
  4670. {
  4671. VW_PUBLIC:
  4672.     CVisioAccelItems()
  4673.         : CVisioUnknown() { }
  4674.  
  4675.     CVisioAccelItems(const CVisioAccelItems& other)
  4676.         : CVisioUnknown(other) { }
  4677.  
  4678.     CVisioAccelItems(const IVAccelItems FAR * other, BOOL bAssumeResponsibility= FALSE)
  4679.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4680.  
  4681.     const CVisioAccelItems FAR & operator=(const CVisioAccelItems FAR &other)
  4682.         {
  4683.         if ( &other != this )
  4684.             CopyIP(other.GetUnknown());
  4685.  
  4686.         return *this;
  4687.         }
  4688.  
  4689.     const CVisioAccelItems FAR & operator=(const IVAccelItems FAR * other)
  4690.         {
  4691.         if ( (LPUNKNOWN)other != GetUnknown() )
  4692.             CopyIP((LPUNKNOWN)other);
  4693.  
  4694.         return *this;
  4695.         }
  4696.  
  4697.     virtual ~CVisioAccelItems() { }
  4698.  
  4699.     IVAccelItems FAR * GetIP() const { return (IVAccelItems FAR *) GetUnknown(); }
  4700.  
  4701.     operator IVAccelItems FAR * () { return (IVAccelItems FAR *) GetUnknown(); }
  4702.  
  4703. VW_PUBLIC:
  4704.     IUnknown FAR *_NewEnum();
  4705.     CVisioAccelItem FAR Item(long lIndex);
  4706.     CVisioAccelItem FAR Add();
  4707.     long Count();
  4708.     CVisioAccelTable FAR Parent();
  4709. };
  4710.  
  4711.  
  4712. //  ***************************************************************************
  4713. //  Declaration of class CVisioAccelTable
  4714.  
  4715. class FAR CVisioAccelTable : public CVisioUnknown
  4716. {
  4717. VW_PUBLIC:
  4718.     CVisioAccelTable()
  4719.         : CVisioUnknown() { }
  4720.  
  4721.     CVisioAccelTable(const CVisioAccelTable& other)
  4722.         : CVisioUnknown(other) { }
  4723.  
  4724.     CVisioAccelTable(const IVAccelTable FAR * other, BOOL bAssumeResponsibility= FALSE)
  4725.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4726.  
  4727.     const CVisioAccelTable FAR & operator=(const CVisioAccelTable FAR &other)
  4728.         {
  4729.         if ( &other != this )
  4730.             CopyIP(other.GetUnknown());
  4731.  
  4732.         return *this;
  4733.         }
  4734.  
  4735.     const CVisioAccelTable FAR & operator=(const IVAccelTable FAR * other)
  4736.         {
  4737.         if ( (LPUNKNOWN)other != GetUnknown() )
  4738.             CopyIP((LPUNKNOWN)other);
  4739.  
  4740.         return *this;
  4741.         }
  4742.  
  4743.     virtual ~CVisioAccelTable() { }
  4744.  
  4745.     IVAccelTable FAR * GetIP() const { return (IVAccelTable FAR *) GetUnknown(); }
  4746.  
  4747.     operator IVAccelTable FAR * () { return (IVAccelTable FAR *) GetUnknown(); }
  4748.  
  4749. VW_PUBLIC:
  4750.     void Delete();
  4751.     BSTR_HELPER_CLASS FAR Default();
  4752.     void putTableName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4753.     BSTR_HELPER_CLASS FAR getTableName();
  4754.     long SetID();
  4755.     CVisioAccelItems FAR AccelItems();
  4756.     CVisioAccelTables FAR Parent();
  4757. };
  4758.  
  4759.  
  4760. //  ***************************************************************************
  4761. //  Declaration of class CVisioIEnumVAccelTable
  4762.  
  4763. class FAR CVisioIEnumVAccelTable : public CVisioUnknown
  4764. {
  4765. VW_PUBLIC:
  4766.     CVisioIEnumVAccelTable()
  4767.         : CVisioUnknown() { }
  4768.  
  4769.     CVisioIEnumVAccelTable(const CVisioIEnumVAccelTable& other)
  4770.         : CVisioUnknown(other) { }
  4771.  
  4772.     CVisioIEnumVAccelTable(const IEnumVAccelTable FAR * other, BOOL bAssumeResponsibility= FALSE)
  4773.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4774.  
  4775.     const CVisioIEnumVAccelTable FAR & operator=(const CVisioIEnumVAccelTable FAR &other)
  4776.         {
  4777.         if ( &other != this )
  4778.             CopyIP(other.GetUnknown());
  4779.  
  4780.         return *this;
  4781.         }
  4782.  
  4783.     const CVisioIEnumVAccelTable FAR & operator=(const IEnumVAccelTable FAR * other)
  4784.         {
  4785.         if ( (LPUNKNOWN)other != GetUnknown() )
  4786.             CopyIP((LPUNKNOWN)other);
  4787.  
  4788.         return *this;
  4789.         }
  4790.  
  4791.     virtual ~CVisioIEnumVAccelTable() { }
  4792.  
  4793.     IEnumVAccelTable FAR * GetIP() const { return (IEnumVAccelTable FAR *) GetUnknown(); }
  4794.  
  4795.     operator IEnumVAccelTable FAR * () { return (IEnumVAccelTable FAR *) GetUnknown(); }
  4796.  
  4797. VW_PUBLIC:
  4798. #if 0
  4799.     //  This method list provided for information only...
  4800.     HRESULT Next(long celt, CVisioAccelTable FAR &rgelt, long FAR *pceltFetched);
  4801.     HRESULT Skip(long celt);
  4802.     HRESULT Reset();
  4803.     HRESULT Clone(IEnumVAccelTable FAR * FAR *ppenm);
  4804. #endif  //  0
  4805. };
  4806.  
  4807.  
  4808. //  ***************************************************************************
  4809. //  Declaration of class CVisioAccelTables
  4810.  
  4811. class FAR CVisioAccelTables : public CVisioUnknown
  4812. {
  4813. VW_PUBLIC:
  4814.     CVisioAccelTables()
  4815.         : CVisioUnknown() { }
  4816.  
  4817.     CVisioAccelTables(const CVisioAccelTables& other)
  4818.         : CVisioUnknown(other) { }
  4819.  
  4820.     CVisioAccelTables(const IVAccelTables FAR * other, BOOL bAssumeResponsibility= FALSE)
  4821.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4822.  
  4823.     const CVisioAccelTables FAR & operator=(const CVisioAccelTables FAR &other)
  4824.         {
  4825.         if ( &other != this )
  4826.             CopyIP(other.GetUnknown());
  4827.  
  4828.         return *this;
  4829.         }
  4830.  
  4831.     const CVisioAccelTables FAR & operator=(const IVAccelTables FAR * other)
  4832.         {
  4833.         if ( (LPUNKNOWN)other != GetUnknown() )
  4834.             CopyIP((LPUNKNOWN)other);
  4835.  
  4836.         return *this;
  4837.         }
  4838.  
  4839.     virtual ~CVisioAccelTables() { }
  4840.  
  4841.     IVAccelTables FAR * GetIP() const { return (IVAccelTables FAR *) GetUnknown(); }
  4842.  
  4843.     operator IVAccelTables FAR * () { return (IVAccelTables FAR *) GetUnknown(); }
  4844.  
  4845. VW_PUBLIC:
  4846.     IUnknown FAR *_NewEnum();
  4847.     CVisioAccelTable FAR Item(long lIndex);
  4848.     CVisioAccelTable FAR ItemAtID(long lID);
  4849.     CVisioAccelTable FAR Add();
  4850.     CVisioAccelTable FAR AddAtID(long lID);
  4851.     long Count();
  4852.     CVisioUIObject FAR Parent();
  4853. };
  4854.  
  4855.  
  4856. //  ***************************************************************************
  4857. //  Declaration of class CVisioUIObject
  4858.  
  4859. class FAR CVisioUIObject : public CVisioUnknown
  4860. {
  4861. VW_PUBLIC:
  4862.     CVisioUIObject()
  4863.         : CVisioUnknown() { }
  4864.  
  4865.     CVisioUIObject(const CVisioUIObject& other)
  4866.         : CVisioUnknown(other) { }
  4867.  
  4868.     CVisioUIObject(const IVUIObject FAR * other, BOOL bAssumeResponsibility= FALSE)
  4869.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4870.  
  4871.     const CVisioUIObject FAR & operator=(const CVisioUIObject FAR &other)
  4872.         {
  4873.         if ( &other != this )
  4874.             CopyIP(other.GetUnknown());
  4875.  
  4876.         return *this;
  4877.         }
  4878.  
  4879.     const CVisioUIObject FAR & operator=(const IVUIObject FAR * other)
  4880.         {
  4881.         if ( (LPUNKNOWN)other != GetUnknown() )
  4882.             CopyIP((LPUNKNOWN)other);
  4883.  
  4884.         return *this;
  4885.         }
  4886.  
  4887.     virtual ~CVisioUIObject() { }
  4888.  
  4889.     IVUIObject FAR * GetIP() const { return (IVUIObject FAR *) GetUnknown(); }
  4890.  
  4891.     operator IVUIObject FAR * () { return (IVUIObject FAR *) GetUnknown(); }
  4892.  
  4893. VW_PUBLIC:
  4894.     void Delete();
  4895.     BSTR_HELPER_CLASS FAR Default();
  4896.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4897.     BSTR_HELPER_CLASS FAR getName();
  4898.     void putFlavor(VW_CONST short param01);
  4899.     short getFlavor();
  4900.     CVisioMenuSets FAR MenuSets();
  4901.     CVisioToolbarSets FAR ToolbarSets();
  4902.     CVisioStatusBars FAR StatusBars();
  4903.     CVisioAccelTables FAR AccelTables();
  4904.     void SaveToFile(BSTR_HELPER_CLASS FAR &FileName);
  4905.     void LoadFromFile(BSTR_HELPER_CLASS FAR &FileName);
  4906.     void UpdateUI();
  4907. };
  4908.  
  4909.  
  4910. //  ***************************************************************************
  4911. //  Declaration of class CVisioHyperlink
  4912.  
  4913. class FAR CVisioHyperlink : public CVisioUnknown
  4914. {
  4915. VW_PUBLIC:
  4916.     CVisioHyperlink()
  4917.         : CVisioUnknown() { }
  4918.  
  4919.     CVisioHyperlink(const CVisioHyperlink& other)
  4920.         : CVisioUnknown(other) { }
  4921.  
  4922.     CVisioHyperlink(const IVHyperlink FAR * other, BOOL bAssumeResponsibility= FALSE)
  4923.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4924.  
  4925.     const CVisioHyperlink FAR & operator=(const CVisioHyperlink FAR &other)
  4926.         {
  4927.         if ( &other != this )
  4928.             CopyIP(other.GetUnknown());
  4929.  
  4930.         return *this;
  4931.         }
  4932.  
  4933.     const CVisioHyperlink FAR & operator=(const IVHyperlink FAR * other)
  4934.         {
  4935.         if ( (LPUNKNOWN)other != GetUnknown() )
  4936.             CopyIP((LPUNKNOWN)other);
  4937.  
  4938.         return *this;
  4939.         }
  4940.  
  4941.     virtual ~CVisioHyperlink() { }
  4942.  
  4943.     IVHyperlink FAR * GetIP() const { return (IVHyperlink FAR *) GetUnknown(); }
  4944.  
  4945.     operator IVHyperlink FAR * () { return (IVHyperlink FAR *) GetUnknown(); }
  4946.  
  4947. VW_PUBLIC:
  4948.     BSTR_HELPER_CLASS FAR getDescription();
  4949.     void putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4950.     CVisioApplication FAR Application();
  4951.     CVisioShape FAR Shape();
  4952.     short ObjectType();
  4953.     short Stat();
  4954.     BSTR_HELPER_CLASS FAR getAddress();
  4955.     void putAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4956.     BSTR_HELPER_CLASS FAR getSubAddress();
  4957.     void putSubAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4958.     short getNewWindow();
  4959.     void putNewWindow(VW_CONST short param01);
  4960.     BSTR_HELPER_CLASS FAR getExtraInfo();
  4961.     void putExtraInfo(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4962.     BSTR_HELPER_CLASS FAR getFrame();
  4963.     void putFrame(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  4964.     void AddToFavorites(VARIANT_HELPER_CLASS FAR &FavoritesTitle);
  4965.     void Follow();
  4966.     void Delete();
  4967.     void Copy();
  4968.     BSTR_HELPER_CLASS FAR CreateURL(short CanonicalForm);
  4969. };
  4970.  
  4971.  
  4972. //  ***************************************************************************
  4973. //  Declaration of class CVisioOLEObjects
  4974.  
  4975. class FAR CVisioOLEObjects : public CVisioUnknown
  4976. {
  4977. VW_PUBLIC:
  4978.     CVisioOLEObjects()
  4979.         : CVisioUnknown() { }
  4980.  
  4981.     CVisioOLEObjects(const CVisioOLEObjects& other)
  4982.         : CVisioUnknown(other) { }
  4983.  
  4984.     CVisioOLEObjects(const IVOLEObjects FAR * other, BOOL bAssumeResponsibility= FALSE)
  4985.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  4986.  
  4987.     const CVisioOLEObjects FAR & operator=(const CVisioOLEObjects FAR &other)
  4988.         {
  4989.         if ( &other != this )
  4990.             CopyIP(other.GetUnknown());
  4991.  
  4992.         return *this;
  4993.         }
  4994.  
  4995.     const CVisioOLEObjects FAR & operator=(const IVOLEObjects FAR * other)
  4996.         {
  4997.         if ( (LPUNKNOWN)other != GetUnknown() )
  4998.             CopyIP((LPUNKNOWN)other);
  4999.  
  5000.         return *this;
  5001.         }
  5002.  
  5003.     virtual ~CVisioOLEObjects() { }
  5004.  
  5005.     IVOLEObjects FAR * GetIP() const { return (IVOLEObjects FAR *) GetUnknown(); }
  5006.  
  5007.     operator IVOLEObjects FAR * () { return (IVOLEObjects FAR *) GetUnknown(); }
  5008.  
  5009. VW_PUBLIC:
  5010.     CVisioApplication FAR Application();
  5011.     short ObjectType();
  5012.     short Stat();
  5013.     CVisioOLEObject FAR Item(VARIANT_HELPER_CLASS FAR &NameOrIndex);
  5014.     short Count();
  5015. };
  5016.  
  5017.  
  5018. //  ***************************************************************************
  5019. //  Declaration of class CVisioOLEObject
  5020.  
  5021. class FAR CVisioOLEObject : public CVisioUnknown
  5022. {
  5023. VW_PUBLIC:
  5024.     CVisioOLEObject()
  5025.         : CVisioUnknown() { }
  5026.  
  5027.     CVisioOLEObject(const CVisioOLEObject& other)
  5028.         : CVisioUnknown(other) { }
  5029.  
  5030.     CVisioOLEObject(const IVOLEObject FAR * other, BOOL bAssumeResponsibility= FALSE)
  5031.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5032.  
  5033.     const CVisioOLEObject FAR & operator=(const CVisioOLEObject FAR &other)
  5034.         {
  5035.         if ( &other != this )
  5036.             CopyIP(other.GetUnknown());
  5037.  
  5038.         return *this;
  5039.         }
  5040.  
  5041.     const CVisioOLEObject FAR & operator=(const IVOLEObject FAR * other)
  5042.         {
  5043.         if ( (LPUNKNOWN)other != GetUnknown() )
  5044.             CopyIP((LPUNKNOWN)other);
  5045.  
  5046.         return *this;
  5047.         }
  5048.  
  5049.     virtual ~CVisioOLEObject() { }
  5050.  
  5051.     IVOLEObject FAR * GetIP() const { return (IVOLEObject FAR *) GetUnknown(); }
  5052.  
  5053.     operator IVOLEObject FAR * () { return (IVOLEObject FAR *) GetUnknown(); }
  5054.  
  5055. VW_PUBLIC:
  5056.     CVisioApplication FAR Application();
  5057.     CVisioShape FAR Shape();
  5058.     short ObjectType();
  5059.     short Stat();
  5060.     BSTR_HELPER_CLASS FAR ClassID();
  5061.     BSTR_HELPER_CLASS FAR ProgID();
  5062.     short ForeignType();
  5063.     IDispatch FAR *Object();
  5064. };
  5065.  
  5066.  
  5067. //  ***************************************************************************
  5068. //  Declaration of class CVisioPaths
  5069.  
  5070. class FAR CVisioPaths : public CVisioUnknown
  5071. {
  5072. VW_PUBLIC:
  5073.     CVisioPaths()
  5074.         : CVisioUnknown() { }
  5075.  
  5076.     CVisioPaths(const CVisioPaths& other)
  5077.         : CVisioUnknown(other) { }
  5078.  
  5079.     CVisioPaths(const IVPaths FAR * other, BOOL bAssumeResponsibility= FALSE)
  5080.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5081.  
  5082.     const CVisioPaths FAR & operator=(const CVisioPaths FAR &other)
  5083.         {
  5084.         if ( &other != this )
  5085.             CopyIP(other.GetUnknown());
  5086.  
  5087.         return *this;
  5088.         }
  5089.  
  5090.     const CVisioPaths FAR & operator=(const IVPaths FAR * other)
  5091.         {
  5092.         if ( (LPUNKNOWN)other != GetUnknown() )
  5093.             CopyIP((LPUNKNOWN)other);
  5094.  
  5095.         return *this;
  5096.         }
  5097.  
  5098.     virtual ~CVisioPaths() { }
  5099.  
  5100.     IVPaths FAR * GetIP() const { return (IVPaths FAR *) GetUnknown(); }
  5101.  
  5102.     operator IVPaths FAR * () { return (IVPaths FAR *) GetUnknown(); }
  5103.  
  5104. VW_PUBLIC:
  5105.     CVisioApplication FAR Application();
  5106.     short ObjectType();
  5107.     CVisioPath FAR Item(short Index);
  5108.     short Count();
  5109. };
  5110.  
  5111.  
  5112. //  ***************************************************************************
  5113. //  Declaration of class CVisioPath
  5114.  
  5115. class FAR CVisioPath : public CVisioUnknown
  5116. {
  5117. VW_PUBLIC:
  5118.     CVisioPath()
  5119.         : CVisioUnknown() { }
  5120.  
  5121.     CVisioPath(const CVisioPath& other)
  5122.         : CVisioUnknown(other) { }
  5123.  
  5124.     CVisioPath(const IVPath FAR * other, BOOL bAssumeResponsibility= FALSE)
  5125.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5126.  
  5127.     const CVisioPath FAR & operator=(const CVisioPath FAR &other)
  5128.         {
  5129.         if ( &other != this )
  5130.             CopyIP(other.GetUnknown());
  5131.  
  5132.         return *this;
  5133.         }
  5134.  
  5135.     const CVisioPath FAR & operator=(const IVPath FAR * other)
  5136.         {
  5137.         if ( (LPUNKNOWN)other != GetUnknown() )
  5138.             CopyIP((LPUNKNOWN)other);
  5139.  
  5140.         return *this;
  5141.         }
  5142.  
  5143.     virtual ~CVisioPath() { }
  5144.  
  5145.     IVPath FAR * GetIP() const { return (IVPath FAR *) GetUnknown(); }
  5146.  
  5147.     operator IVPath FAR * () { return (IVPath FAR *) GetUnknown(); }
  5148.  
  5149. VW_PUBLIC:
  5150.     CVisioApplication FAR Application();
  5151.     short ObjectType();
  5152.     CVisioCurve FAR Item(short Index);
  5153.     short Count();
  5154.     short Closed();
  5155.     void Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray);
  5156. };
  5157.  
  5158.  
  5159. //  ***************************************************************************
  5160. //  Declaration of class CVisioCurve
  5161.  
  5162. class FAR CVisioCurve : public CVisioUnknown
  5163. {
  5164. VW_PUBLIC:
  5165.     CVisioCurve()
  5166.         : CVisioUnknown() { }
  5167.  
  5168.     CVisioCurve(const CVisioCurve& other)
  5169.         : CVisioUnknown(other) { }
  5170.  
  5171.     CVisioCurve(const IVCurve FAR * other, BOOL bAssumeResponsibility= FALSE)
  5172.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5173.  
  5174.     const CVisioCurve FAR & operator=(const CVisioCurve FAR &other)
  5175.         {
  5176.         if ( &other != this )
  5177.             CopyIP(other.GetUnknown());
  5178.  
  5179.         return *this;
  5180.         }
  5181.  
  5182.     const CVisioCurve FAR & operator=(const IVCurve FAR * other)
  5183.         {
  5184.         if ( (LPUNKNOWN)other != GetUnknown() )
  5185.             CopyIP((LPUNKNOWN)other);
  5186.  
  5187.         return *this;
  5188.         }
  5189.  
  5190.     virtual ~CVisioCurve() { }
  5191.  
  5192.     IVCurve FAR * GetIP() const { return (IVCurve FAR *) GetUnknown(); }
  5193.  
  5194.     operator IVCurve FAR * () { return (IVCurve FAR *) GetUnknown(); }
  5195.  
  5196. VW_PUBLIC:
  5197.     CVisioApplication FAR Application();
  5198.     short ObjectType();
  5199.     short Closed();
  5200.     void Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray);
  5201.     double Start();
  5202.     double End();
  5203.     void Point(double t, double FAR *x, double FAR *y);
  5204.     void PointAndDerivatives(double t, short n, double FAR *x, double FAR *y, double FAR *dxdt, double FAR *dydt, double FAR *ddxdt, double FAR *ddydt);
  5205. };
  5206.  
  5207.  
  5208. //  ***************************************************************************
  5209. //  Declaration of class CVisioExtender
  5210.  
  5211. class FAR CVisioExtender : public CVisioUnknown
  5212. {
  5213. VW_PUBLIC:
  5214.     CVisioExtender()
  5215.         : CVisioUnknown() { }
  5216.  
  5217.     CVisioExtender(const CVisioExtender& other)
  5218.         : CVisioUnknown(other) { }
  5219.  
  5220.     CVisioExtender(const IVExtender FAR * other, BOOL bAssumeResponsibility= FALSE)
  5221.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5222.  
  5223.     const CVisioExtender FAR & operator=(const CVisioExtender FAR &other)
  5224.         {
  5225.         if ( &other != this )
  5226.             CopyIP(other.GetUnknown());
  5227.  
  5228.         return *this;
  5229.         }
  5230.  
  5231.     const CVisioExtender FAR & operator=(const IVExtender FAR * other)
  5232.         {
  5233.         if ( (LPUNKNOWN)other != GetUnknown() )
  5234.             CopyIP((LPUNKNOWN)other);
  5235.  
  5236.         return *this;
  5237.         }
  5238.  
  5239.     virtual ~CVisioExtender() { }
  5240.  
  5241.     IVExtender FAR * GetIP() const { return (IVExtender FAR *) GetUnknown(); }
  5242.  
  5243.     operator IVExtender FAR * () { return (IVExtender FAR *) GetUnknown(); }
  5244.  
  5245. VW_PUBLIC:
  5246.     BSTR_HELPER_CLASS FAR getName();
  5247.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5248.     IUnknown FAR *Object();
  5249.     IUnknown FAR *Parent();
  5250.     void Delete();
  5251.     void Index();
  5252.     CVisioShape FAR Shape();
  5253.     void Group();
  5254.     void BringForward();
  5255.     void BringToFront();
  5256.     void ConvertToGroup();
  5257.     void SendBackward();
  5258.     void SendToBack();
  5259.     CVisioDocument FAR Document();
  5260.     IDispatch FAR *ShapeParent();
  5261.     CVisioApplication FAR Application();
  5262.     CVisioMaster FAR Master();
  5263.     CVisioCell FAR Cells(BSTR_HELPER_CLASS FAR &CellName);
  5264.     CVisioCell FAR CellsSRC(short Section, short Row, short Column);
  5265.     BSTR_HELPER_CLASS FAR getData1();
  5266.     void putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5267.     BSTR_HELPER_CLASS FAR getData2();
  5268.     void putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5269.     BSTR_HELPER_CLASS FAR getData3();
  5270.     void putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5271.     BSTR_HELPER_CLASS FAR getHelp();
  5272.     void putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5273.     BSTR_HELPER_CLASS FAR NameID();
  5274.     void ShapeCopy();
  5275.     void ShapeCut();
  5276.     void ShapeDelete();
  5277.     void ShapeDuplicate();
  5278.     short RowCount(short Section);
  5279.     short AddSection(short Section);
  5280.     void DeleteSection(short Section);
  5281.     short AddRow(short Section, short Row, short RowTag);
  5282.     void DeleteRow(short Section, short Row);
  5283.     short RowsCellCount(short Section, short Row);
  5284.     short getRowType(short Section, short Row);
  5285.     void putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03);
  5286.     void SetCenter(double xPos, double yPos);
  5287.     CVisioConnects FAR Connects();
  5288.     short ShapeIndex();
  5289.     BSTR_HELPER_CLASS FAR getStyle();
  5290.     void putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5291.     void StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5292.     BSTR_HELPER_CLASS FAR getLineStyle();
  5293.     void putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5294.     void LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5295.     BSTR_HELPER_CLASS FAR getFillStyle();
  5296.     void putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5297.     void FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5298.     void Export(BSTR_HELPER_CLASS FAR &FileName);
  5299.     BSTR_HELPER_CLASS FAR UniqueID(short fUniqueID);
  5300.     CVisioPage FAR ContainingPage();
  5301.     CVisioMaster FAR ContainingMaster();
  5302.     CVisioShape FAR ContainingShape();
  5303.     short SectionExists(short Section, short fLocalExists);
  5304.     short RowExists(short Section, short Row, short fLocalExists);
  5305.     short CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists);
  5306.     short CellsSRCExists(short Section, short Row, short Column, short fLocalExists);
  5307.     short LayerCount();
  5308.     CVisioLayer FAR Layer(short Index);
  5309.     short AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag);
  5310.     short AddRows(short Section, short Row, short RowTag, short RowCount);
  5311.     CVisioEventList FAR EventList();
  5312.     short PersistsEvents();
  5313.     BSTR_HELPER_CLASS FAR ClassID();
  5314.     IDispatch FAR *ShapeObject();
  5315.     CVisioWindow FAR OpenSheetWindow();
  5316.     short ShapeID();
  5317.     void GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  5318.     void GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  5319.     short SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags);
  5320.     short SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags);
  5321.     CVisioConnects FAR FromConnects();
  5322.     void BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  5323.     short HitTest(double xPos, double yPos, double Tolerance);
  5324.     CVisioHyperlink FAR Hyperlink();
  5325.     BSTR_HELPER_CLASS FAR ProgID();
  5326.     short ObjectIsInherited();
  5327. };
  5328.  
  5329.  
  5330. //  ***************************************************************************
  5331. //  Declaration of class CVisioDispExtender
  5332.  
  5333. class FAR CVisioDispExtender : public CVisioUnknown
  5334. {
  5335. VW_PUBLIC:
  5336.     CVisioDispExtender()
  5337.         : CVisioUnknown() { }
  5338.  
  5339.     CVisioDispExtender(const CVisioDispExtender& other)
  5340.         : CVisioUnknown(other) { }
  5341.  
  5342.     CVisioDispExtender(const IVDispExtender FAR * other, BOOL bAssumeResponsibility= FALSE)
  5343.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5344.  
  5345.     const CVisioDispExtender FAR & operator=(const CVisioDispExtender FAR &other)
  5346.         {
  5347.         if ( &other != this )
  5348.             CopyIP(other.GetUnknown());
  5349.  
  5350.         return *this;
  5351.         }
  5352.  
  5353.     const CVisioDispExtender FAR & operator=(const IVDispExtender FAR * other)
  5354.         {
  5355.         if ( (LPUNKNOWN)other != GetUnknown() )
  5356.             CopyIP((LPUNKNOWN)other);
  5357.  
  5358.         return *this;
  5359.         }
  5360.  
  5361.     virtual ~CVisioDispExtender() { }
  5362.  
  5363.     IVDispExtender FAR * GetIP() const { return (IVDispExtender FAR *) GetUnknown(); }
  5364.  
  5365.     operator IVDispExtender FAR * () { return (IVDispExtender FAR *) GetUnknown(); }
  5366.  
  5367. VW_PUBLIC:
  5368. #if 0
  5369.     //  This method list provided for information only...
  5370.     void QueryInterface(REFIID riid, void FAR * FAR *ppvObj);
  5371.     unsigned long AddRef();
  5372.     unsigned long Release();
  5373.     void GetTypeInfoCount(unsigned long FAR *pctinfo);
  5374.     void GetTypeInfo(unsigned long itinfo, unsigned long lcid, ITypeInfo FAR *FAR *pptinfo);
  5375.     void GetIDsOfNames(REFIID riid, OLECHAR FAR *FAR *rgszNames, unsigned long cNames, unsigned long lcid, long FAR *rgdispid);
  5376.     void Invoke(long dispidMember, REFIID riid, unsigned long lcid, unsigned short wFlags, DISPPARAMS FAR *pdispparams, VARIANT_HELPER_CLASS FAR &pvarResult, EXCEPINFO FAR *pexcepinfo, unsigned long FAR *puArgErr);
  5377.     BSTR_HELPER_CLASS FAR getName();
  5378.     void putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5379.     IUnknown FAR *Object();
  5380.     IUnknown FAR *Parent();
  5381.     void Delete();
  5382.     void Index();
  5383.     CVisioShape FAR Shape();
  5384.     void Group();
  5385.     void BringForward();
  5386.     void BringToFront();
  5387.     void ConvertToGroup();
  5388.     void SendBackward();
  5389.     void SendToBack();
  5390.     CVisioDocument FAR Document();
  5391.     IDispatch FAR *ShapeParent();
  5392.     CVisioApplication FAR Application();
  5393.     CVisioMaster FAR Master();
  5394.     CVisioCell FAR Cells(BSTR_HELPER_CLASS FAR &CellName);
  5395.     CVisioCell FAR CellsSRC(short Section, short Row, short Column);
  5396.     BSTR_HELPER_CLASS FAR getData1();
  5397.     void putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5398.     BSTR_HELPER_CLASS FAR getData2();
  5399.     void putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5400.     BSTR_HELPER_CLASS FAR getData3();
  5401.     void putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5402.     BSTR_HELPER_CLASS FAR getHelp();
  5403.     void putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5404.     BSTR_HELPER_CLASS FAR NameID();
  5405.     void ShapeCopy();
  5406.     void ShapeCut();
  5407.     void ShapeDelete();
  5408.     void ShapeDuplicate();
  5409.     short RowCount(short Section);
  5410.     short AddSection(short Section);
  5411.     void DeleteSection(short Section);
  5412.     short AddRow(short Section, short Row, short RowTag);
  5413.     void DeleteRow(short Section, short Row);
  5414.     short RowsCellCount(short Section, short Row);
  5415.     short getRowType(short Section, short Row);
  5416.     void putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03);
  5417.     void SetCenter(double xPos, double yPos);
  5418.     CVisioConnects FAR Connects();
  5419.     short ShapeIndex();
  5420.     BSTR_HELPER_CLASS FAR getStyle();
  5421.     void putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5422.     void StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5423.     BSTR_HELPER_CLASS FAR getLineStyle();
  5424.     void putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5425.     void LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5426.     BSTR_HELPER_CLASS FAR getFillStyle();
  5427.     void putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5428.     void FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01);
  5429.     void Export(BSTR_HELPER_CLASS FAR &FileName);
  5430.     BSTR_HELPER_CLASS FAR UniqueID(short fUniqueID);
  5431.     CVisioPage FAR ContainingPage();
  5432.     CVisioMaster FAR ContainingMaster();
  5433.     CVisioShape FAR ContainingShape();
  5434.     short SectionExists(short Section, short fLocalExists);
  5435.     short RowExists(short Section, short Row, short fLocalExists);
  5436.     short CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists);
  5437.     short CellsSRCExists(short Section, short Row, short Column, short fLocalExists);
  5438.     short LayerCount();
  5439.     CVisioLayer FAR Layer(short Index);
  5440.     short AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag);
  5441.     short AddRows(short Section, short Row, short RowTag, short RowCount);
  5442.     CVisioEventList FAR EventList();
  5443.     short PersistsEvents();
  5444.     BSTR_HELPER_CLASS FAR ClassID();
  5445.     IDispatch FAR *ShapeObject();
  5446.     CVisioWindow FAR OpenSheetWindow();
  5447.     short ShapeID();
  5448.     void GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
  5449.     void GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
  5450.     short SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags);
  5451.     short SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags);
  5452.     CVisioConnects FAR FromConnects();
  5453.     void BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
  5454.     short HitTest(double xPos, double yPos, double Tolerance);
  5455.     CVisioHyperlink FAR Hyperlink();
  5456.     BSTR_HELPER_CLASS FAR ProgID();
  5457.     short ObjectIsInherited();
  5458. #endif  //  0
  5459. };
  5460.  
  5461.  
  5462. //  ***************************************************************************
  5463. //  Declaration of class CVisioAmbients
  5464.  
  5465. class FAR CVisioAmbients : public CVisioUnknown
  5466. {
  5467. VW_PUBLIC:
  5468.     CVisioAmbients()
  5469.         : CVisioUnknown() { }
  5470.  
  5471.     CVisioAmbients(const CVisioAmbients& other)
  5472.         : CVisioUnknown(other) { }
  5473.  
  5474.     CVisioAmbients(const IVAmbients FAR * other, BOOL bAssumeResponsibility= FALSE)
  5475.         : CVisioUnknown((LPUNKNOWN)other, bAssumeResponsibility) { }
  5476.  
  5477.     const CVisioAmbients FAR & operator=(const CVisioAmbients FAR &other)
  5478.         {
  5479.         if ( &other != this )
  5480.             CopyIP(other.GetUnknown());
  5481.  
  5482.         return *this;
  5483.         }
  5484.  
  5485.     const CVisioAmbients FAR & operator=(const IVAmbients FAR * other)
  5486.         {
  5487.         if ( (LPUNKNOWN)other != GetUnknown() )
  5488.             CopyIP((LPUNKNOWN)other);
  5489.  
  5490.         return *this;
  5491.         }
  5492.  
  5493.     virtual ~CVisioAmbients() { }
  5494.  
  5495.     IVAmbients FAR * GetIP() const { return (IVAmbients FAR *) GetUnknown(); }
  5496.  
  5497.     operator IVAmbients FAR * () { return (IVAmbients FAR *) GetUnknown(); }
  5498.  
  5499. VW_PUBLIC:
  5500.     long BackColor();
  5501.     BSTR_HELPER_CLASS FAR DisplayName();
  5502.     IDispatch FAR *Font();
  5503.     long ForeColor();
  5504.     long LocaleID();
  5505.     VARIANT_BOOL MessageReflect();
  5506.     BSTR_HELPER_CLASS FAR ScaleUnits();
  5507.     short TextAlign();
  5508.     VARIANT_BOOL UserMode();
  5509.     VARIANT_BOOL UIDead();
  5510.     VARIANT_BOOL ShowGrabHandles();
  5511.     VARIANT_BOOL ShowHatching();
  5512.     VARIANT_BOOL DisplayAsDefault();
  5513.     VARIANT_BOOL SupportsMnemonics();
  5514.     VARIANT_BOOL AutoClip();
  5515.     long Appearance();
  5516. };
  5517.  
  5518.  
  5519. //  ***************************************************************************
  5520. //  TypeLib Interface class implementations
  5521.  
  5522. //  ***************************************************************************
  5523. //  Implementation of class CVisioApplication
  5524.  
  5525. VW_INLINE CVisioDocument FAR CVisioApplication::ActiveDocument()
  5526. {
  5527.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5528.     IVDocument FAR *lpRet= NULL;
  5529.     CHECK_IP(GetIP(), CVisioApplication, ActiveDocument);
  5530.     if (NULL!=GetIP())
  5531.         hr= GetIP()->get_ActiveDocument(&lpRet);
  5532.     CHECK_HRESULT(hr, CVisioApplication, ActiveDocument);
  5533.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5534. }
  5535.  
  5536.  
  5537. VW_INLINE CVisioPage FAR CVisioApplication::ActivePage()
  5538. {
  5539.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5540.     IVPage FAR *lpRet= NULL;
  5541.     CHECK_IP(GetIP(), CVisioApplication, ActivePage);
  5542.     if (NULL!=GetIP())
  5543.         hr= GetIP()->get_ActivePage(&lpRet);
  5544.     CHECK_HRESULT(hr, CVisioApplication, ActivePage);
  5545.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5546. }
  5547.  
  5548.  
  5549. VW_INLINE CVisioWindow FAR CVisioApplication::ActiveWindow()
  5550. {
  5551.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5552.     IVWindow FAR *lpRet= NULL;
  5553.     CHECK_IP(GetIP(), CVisioApplication, ActiveWindow);
  5554.     if (NULL!=GetIP())
  5555.         hr= GetIP()->get_ActiveWindow(&lpRet);
  5556.     CHECK_HRESULT(hr, CVisioApplication, ActiveWindow);
  5557.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5558. }
  5559.  
  5560.  
  5561. VW_INLINE CVisioApplication FAR CVisioApplication::Application()
  5562. {
  5563.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5564.     IVApplication FAR *lpRet= NULL;
  5565.     CHECK_IP(GetIP(), CVisioApplication, Application);
  5566.     if (NULL!=GetIP())
  5567.         hr= GetIP()->get_Application(&lpRet);
  5568.     CHECK_HRESULT(hr, CVisioApplication, Application);
  5569.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5570. }
  5571.  
  5572.  
  5573. VW_INLINE CVisioDocuments FAR CVisioApplication::Documents()
  5574. {
  5575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5576.     IVDocuments FAR *lpRet= NULL;
  5577.     CHECK_IP(GetIP(), CVisioApplication, Documents);
  5578.     if (NULL!=GetIP())
  5579.         hr= GetIP()->get_Documents(&lpRet);
  5580.     CHECK_HRESULT(hr, CVisioApplication, Documents);
  5581.     return CVisioDocuments(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5582. }
  5583.  
  5584.  
  5585. VW_INLINE short CVisioApplication::ObjectType()
  5586. {
  5587.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5588.     short ret= 0;
  5589.     CHECK_IP(GetIP(), CVisioApplication, ObjectType);
  5590.     if (NULL!=GetIP())
  5591.         hr= GetIP()->get_ObjectType(&ret);
  5592.     CHECK_HRESULT(hr, CVisioApplication, ObjectType);
  5593.     return ret;
  5594. }
  5595.  
  5596.  
  5597. VW_INLINE long CVisioApplication::getOnDataChangeDelay()
  5598. {
  5599.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5600.     long ret= 0;
  5601.     CHECK_IP(GetIP(), CVisioApplication, getOnDataChangeDelay);
  5602.     if (NULL!=GetIP())
  5603.         hr= GetIP()->get_OnDataChangeDelay(&ret);
  5604.     CHECK_HRESULT(hr, CVisioApplication, getOnDataChangeDelay);
  5605.     return ret;
  5606. }
  5607.  
  5608.  
  5609. VW_INLINE void CVisioApplication::putOnDataChangeDelay(VW_CONST long param01)
  5610. {
  5611.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5612.     CHECK_IP(GetIP(), CVisioApplication, putOnDataChangeDelay);
  5613.     if (NULL!=GetIP())
  5614.         hr= GetIP()->put_OnDataChangeDelay(param01);
  5615.     CHECK_HRESULT(hr, CVisioApplication, putOnDataChangeDelay);
  5616. }
  5617.  
  5618.  
  5619. VW_INLINE long CVisioApplication::ProcessID()
  5620. {
  5621.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5622.     long ret= 0;
  5623.     CHECK_IP(GetIP(), CVisioApplication, ProcessID);
  5624.     if (NULL!=GetIP())
  5625.         hr= GetIP()->get_ProcessID(&ret);
  5626.     CHECK_HRESULT(hr, CVisioApplication, ProcessID);
  5627.     return ret;
  5628. }
  5629.  
  5630.  
  5631. VW_INLINE void CVisioApplication::Quit()
  5632. {
  5633.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5634.     CHECK_IP(GetIP(), CVisioApplication, Quit);
  5635.     if (NULL!=GetIP())
  5636.         hr= GetIP()->Quit();
  5637.     CHECK_HRESULT(hr, CVisioApplication, Quit);
  5638. }
  5639.  
  5640.  
  5641. VW_INLINE void CVisioApplication::Redo()
  5642. {
  5643.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5644.     CHECK_IP(GetIP(), CVisioApplication, Redo);
  5645.     if (NULL!=GetIP())
  5646.         hr= GetIP()->Redo();
  5647.     CHECK_HRESULT(hr, CVisioApplication, Redo);
  5648. }
  5649.  
  5650.  
  5651. VW_INLINE short CVisioApplication::getScreenUpdating()
  5652. {
  5653.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5654.     short ret= 0;
  5655.     CHECK_IP(GetIP(), CVisioApplication, getScreenUpdating);
  5656.     if (NULL!=GetIP())
  5657.         hr= GetIP()->get_ScreenUpdating(&ret);
  5658.     CHECK_HRESULT(hr, CVisioApplication, getScreenUpdating);
  5659.     return ret;
  5660. }
  5661.  
  5662.  
  5663. VW_INLINE void CVisioApplication::putScreenUpdating(VW_CONST short param01)
  5664. {
  5665.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5666.     CHECK_IP(GetIP(), CVisioApplication, putScreenUpdating);
  5667.     if (NULL!=GetIP())
  5668.         hr= GetIP()->put_ScreenUpdating(param01);
  5669.     CHECK_HRESULT(hr, CVisioApplication, putScreenUpdating);
  5670. }
  5671.  
  5672.  
  5673. VW_INLINE short CVisioApplication::Stat()
  5674. {
  5675.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5676.     short ret= 0;
  5677.     CHECK_IP(GetIP(), CVisioApplication, Stat);
  5678.     if (NULL!=GetIP())
  5679.         hr= GetIP()->get_Stat(&ret);
  5680.     CHECK_HRESULT(hr, CVisioApplication, Stat);
  5681.     return ret;
  5682. }
  5683.  
  5684.  
  5685. VW_INLINE void CVisioApplication::Undo()
  5686. {
  5687.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5688.     CHECK_IP(GetIP(), CVisioApplication, Undo);
  5689.     if (NULL!=GetIP())
  5690.         hr= GetIP()->Undo();
  5691.     CHECK_HRESULT(hr, CVisioApplication, Undo);
  5692. }
  5693.  
  5694.  
  5695. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::Version()
  5696. {
  5697.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5698.     BSTR ret= 0;
  5699.     CHECK_IP(GetIP(), CVisioApplication, Version);
  5700.     if (NULL!=GetIP())
  5701.         hr= GetIP()->get_Version(&ret);
  5702.     CHECK_HRESULT(hr, CVisioApplication, Version);
  5703.     return BSTR_HELPER_CLASS(ret, TRUE);
  5704. }
  5705.  
  5706.  
  5707. VW_INLINE short CVisioApplication::WindowHandle()
  5708. {
  5709.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5710.     short ret= 0;
  5711.     CHECK_IP(GetIP(), CVisioApplication, WindowHandle);
  5712.     if (NULL!=GetIP())
  5713.         hr= GetIP()->get_WindowHandle(&ret);
  5714.     CHECK_HRESULT(hr, CVisioApplication, WindowHandle);
  5715.     return ret;
  5716. }
  5717.  
  5718.  
  5719. VW_INLINE CVisioWindows FAR CVisioApplication::Windows()
  5720. {
  5721.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5722.     IVWindows FAR *lpRet= NULL;
  5723.     CHECK_IP(GetIP(), CVisioApplication, Windows);
  5724.     if (NULL!=GetIP())
  5725.         hr= GetIP()->get_Windows(&lpRet);
  5726.     CHECK_HRESULT(hr, CVisioApplication, Windows);
  5727.     return CVisioWindows(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5728. }
  5729.  
  5730.  
  5731. VW_INLINE long CVisioApplication::Language()
  5732. {
  5733.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5734.     long ret= 0;
  5735.     CHECK_IP(GetIP(), CVisioApplication, Language);
  5736.     if (NULL!=GetIP())
  5737.         hr= GetIP()->get_Language(&ret);
  5738.     CHECK_HRESULT(hr, CVisioApplication, Language);
  5739.     return ret;
  5740. }
  5741.  
  5742.  
  5743. VW_INLINE short CVisioApplication::IsVisio16()
  5744. {
  5745.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5746.     short ret= 0;
  5747.     CHECK_IP(GetIP(), CVisioApplication, IsVisio16);
  5748.     if (NULL!=GetIP())
  5749.         hr= GetIP()->get_IsVisio16(&ret);
  5750.     CHECK_HRESULT(hr, CVisioApplication, IsVisio16);
  5751.     return ret;
  5752. }
  5753.  
  5754.  
  5755. VW_INLINE short CVisioApplication::IsVisio32()
  5756. {
  5757.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5758.     short ret= 0;
  5759.     CHECK_IP(GetIP(), CVisioApplication, IsVisio32);
  5760.     if (NULL!=GetIP())
  5761.         hr= GetIP()->get_IsVisio32(&ret);
  5762.     CHECK_HRESULT(hr, CVisioApplication, IsVisio32);
  5763.     return ret;
  5764. }
  5765.  
  5766.  
  5767. VW_INLINE long CVisioApplication::WindowHandle32()
  5768. {
  5769.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5770.     long ret= 0;
  5771.     CHECK_IP(GetIP(), CVisioApplication, WindowHandle32);
  5772.     if (NULL!=GetIP())
  5773.         hr= GetIP()->get_WindowHandle32(&ret);
  5774.     CHECK_HRESULT(hr, CVisioApplication, WindowHandle32);
  5775.     return ret;
  5776. }
  5777.  
  5778.  
  5779. VW_INLINE short CVisioApplication::InstanceHandle()
  5780. {
  5781.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5782.     short ret= 0;
  5783.     CHECK_IP(GetIP(), CVisioApplication, InstanceHandle);
  5784.     if (NULL!=GetIP())
  5785.         hr= GetIP()->get_InstanceHandle(&ret);
  5786.     CHECK_HRESULT(hr, CVisioApplication, InstanceHandle);
  5787.     return ret;
  5788. }
  5789.  
  5790.  
  5791. VW_INLINE long CVisioApplication::InstanceHandle32()
  5792. {
  5793.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5794.     long ret= 0;
  5795.     CHECK_IP(GetIP(), CVisioApplication, InstanceHandle32);
  5796.     if (NULL!=GetIP())
  5797.         hr= GetIP()->get_InstanceHandle32(&ret);
  5798.     CHECK_HRESULT(hr, CVisioApplication, InstanceHandle32);
  5799.     return ret;
  5800. }
  5801.  
  5802.  
  5803. VW_INLINE CVisioUIObject FAR CVisioApplication::BuiltInMenus()
  5804. {
  5805.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5806.     IVUIObject FAR *lpRet= NULL;
  5807.     CHECK_IP(GetIP(), CVisioApplication, BuiltInMenus);
  5808.     if (NULL!=GetIP())
  5809.         hr= GetIP()->get_BuiltInMenus(&lpRet);
  5810.     CHECK_HRESULT(hr, CVisioApplication, BuiltInMenus);
  5811.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5812. }
  5813.  
  5814.  
  5815. VW_INLINE CVisioUIObject FAR CVisioApplication::BuiltInToolbars(short fIgnored)
  5816. {
  5817.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5818.     IVUIObject FAR *lpRet= NULL;
  5819.     CHECK_IP(GetIP(), CVisioApplication, BuiltInToolbars);
  5820.     if (NULL!=GetIP())
  5821.         hr= GetIP()->get_BuiltInToolbars(fIgnored, &lpRet);
  5822.     CHECK_HRESULT(hr, CVisioApplication, BuiltInToolbars);
  5823.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5824. }
  5825.  
  5826.  
  5827. VW_INLINE CVisioUIObject FAR CVisioApplication::CustomMenus()
  5828. {
  5829.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5830.     IVUIObject FAR *lpRet= NULL;
  5831.     CHECK_IP(GetIP(), CVisioApplication, CustomMenus);
  5832.     if (NULL!=GetIP())
  5833.         hr= GetIP()->get_CustomMenus(&lpRet);
  5834.     CHECK_HRESULT(hr, CVisioApplication, CustomMenus);
  5835.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5836. }
  5837.  
  5838.  
  5839. VW_INLINE void CVisioApplication::SetCustomMenus(CVisioUIObject FAR &MenusObject)
  5840. {
  5841.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5842.     CHECK_IP(GetIP(), CVisioApplication, SetCustomMenus);
  5843.     if (NULL!=GetIP())
  5844.         hr= GetIP()->SetCustomMenus(MenusObject);
  5845.     CHECK_HRESULT(hr, CVisioApplication, SetCustomMenus);
  5846. }
  5847.  
  5848.  
  5849. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getCustomMenusFile()
  5850. {
  5851.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5852.     BSTR ret= 0;
  5853.     CHECK_IP(GetIP(), CVisioApplication, getCustomMenusFile);
  5854.     if (NULL!=GetIP())
  5855.         hr= GetIP()->get_CustomMenusFile(&ret);
  5856.     CHECK_HRESULT(hr, CVisioApplication, getCustomMenusFile);
  5857.     return BSTR_HELPER_CLASS(ret, TRUE);
  5858. }
  5859.  
  5860.  
  5861. VW_INLINE void CVisioApplication::putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5862. {
  5863.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5864.     CHECK_IP(GetIP(), CVisioApplication, putCustomMenusFile);
  5865.     if (NULL!=GetIP())
  5866.         hr= GetIP()->put_CustomMenusFile(param01);
  5867.     CHECK_HRESULT(hr, CVisioApplication, putCustomMenusFile);
  5868. }
  5869.  
  5870.  
  5871. VW_INLINE void CVisioApplication::ClearCustomMenus()
  5872. {
  5873.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5874.     CHECK_IP(GetIP(), CVisioApplication, ClearCustomMenus);
  5875.     if (NULL!=GetIP())
  5876.         hr= GetIP()->ClearCustomMenus();
  5877.     CHECK_HRESULT(hr, CVisioApplication, ClearCustomMenus);
  5878. }
  5879.  
  5880.  
  5881. VW_INLINE CVisioUIObject FAR CVisioApplication::CustomToolbars()
  5882. {
  5883.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5884.     IVUIObject FAR *lpRet= NULL;
  5885.     CHECK_IP(GetIP(), CVisioApplication, CustomToolbars);
  5886.     if (NULL!=GetIP())
  5887.         hr= GetIP()->get_CustomToolbars(&lpRet);
  5888.     CHECK_HRESULT(hr, CVisioApplication, CustomToolbars);
  5889.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  5890. }
  5891.  
  5892.  
  5893. VW_INLINE void CVisioApplication::SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject)
  5894. {
  5895.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5896.     CHECK_IP(GetIP(), CVisioApplication, SetCustomToolbars);
  5897.     if (NULL!=GetIP())
  5898.         hr= GetIP()->SetCustomToolbars(ToolbarsObject);
  5899.     CHECK_HRESULT(hr, CVisioApplication, SetCustomToolbars);
  5900. }
  5901.  
  5902.  
  5903. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getCustomToolbarsFile()
  5904. {
  5905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5906.     BSTR ret= 0;
  5907.     CHECK_IP(GetIP(), CVisioApplication, getCustomToolbarsFile);
  5908.     if (NULL!=GetIP())
  5909.         hr= GetIP()->get_CustomToolbarsFile(&ret);
  5910.     CHECK_HRESULT(hr, CVisioApplication, getCustomToolbarsFile);
  5911.     return BSTR_HELPER_CLASS(ret, TRUE);
  5912. }
  5913.  
  5914.  
  5915. VW_INLINE void CVisioApplication::putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5916. {
  5917.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5918.     CHECK_IP(GetIP(), CVisioApplication, putCustomToolbarsFile);
  5919.     if (NULL!=GetIP())
  5920.         hr= GetIP()->put_CustomToolbarsFile(param01);
  5921.     CHECK_HRESULT(hr, CVisioApplication, putCustomToolbarsFile);
  5922. }
  5923.  
  5924.  
  5925. VW_INLINE void CVisioApplication::ClearCustomToolbars()
  5926. {
  5927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5928.     CHECK_IP(GetIP(), CVisioApplication, ClearCustomToolbars);
  5929.     if (NULL!=GetIP())
  5930.         hr= GetIP()->ClearCustomToolbars();
  5931.     CHECK_HRESULT(hr, CVisioApplication, ClearCustomToolbars);
  5932. }
  5933.  
  5934.  
  5935. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getAddonPaths()
  5936. {
  5937.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5938.     BSTR ret= 0;
  5939.     CHECK_IP(GetIP(), CVisioApplication, getAddonPaths);
  5940.     if (NULL!=GetIP())
  5941.         hr= GetIP()->get_AddonPaths(&ret);
  5942.     CHECK_HRESULT(hr, CVisioApplication, getAddonPaths);
  5943.     return BSTR_HELPER_CLASS(ret, TRUE);
  5944. }
  5945.  
  5946.  
  5947. VW_INLINE void CVisioApplication::putAddonPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5948. {
  5949.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5950.     CHECK_IP(GetIP(), CVisioApplication, putAddonPaths);
  5951.     if (NULL!=GetIP())
  5952.         hr= GetIP()->put_AddonPaths(param01);
  5953.     CHECK_HRESULT(hr, CVisioApplication, putAddonPaths);
  5954. }
  5955.  
  5956.  
  5957. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getDrawingPaths()
  5958. {
  5959.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5960.     BSTR ret= 0;
  5961.     CHECK_IP(GetIP(), CVisioApplication, getDrawingPaths);
  5962.     if (NULL!=GetIP())
  5963.         hr= GetIP()->get_DrawingPaths(&ret);
  5964.     CHECK_HRESULT(hr, CVisioApplication, getDrawingPaths);
  5965.     return BSTR_HELPER_CLASS(ret, TRUE);
  5966. }
  5967.  
  5968.  
  5969. VW_INLINE void CVisioApplication::putDrawingPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5970. {
  5971.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5972.     CHECK_IP(GetIP(), CVisioApplication, putDrawingPaths);
  5973.     if (NULL!=GetIP())
  5974.         hr= GetIP()->put_DrawingPaths(param01);
  5975.     CHECK_HRESULT(hr, CVisioApplication, putDrawingPaths);
  5976. }
  5977.  
  5978.  
  5979. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getFilterPaths()
  5980. {
  5981.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5982.     BSTR ret= 0;
  5983.     CHECK_IP(GetIP(), CVisioApplication, getFilterPaths);
  5984.     if (NULL!=GetIP())
  5985.         hr= GetIP()->get_FilterPaths(&ret);
  5986.     CHECK_HRESULT(hr, CVisioApplication, getFilterPaths);
  5987.     return BSTR_HELPER_CLASS(ret, TRUE);
  5988. }
  5989.  
  5990.  
  5991. VW_INLINE void CVisioApplication::putFilterPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  5992. {
  5993.     HRESULT hr= VW_INTERFACE_NOT_SET;
  5994.     CHECK_IP(GetIP(), CVisioApplication, putFilterPaths);
  5995.     if (NULL!=GetIP())
  5996.         hr= GetIP()->put_FilterPaths(param01);
  5997.     CHECK_HRESULT(hr, CVisioApplication, putFilterPaths);
  5998. }
  5999.  
  6000.  
  6001. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getHelpPaths()
  6002. {
  6003.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6004.     BSTR ret= 0;
  6005.     CHECK_IP(GetIP(), CVisioApplication, getHelpPaths);
  6006.     if (NULL!=GetIP())
  6007.         hr= GetIP()->get_HelpPaths(&ret);
  6008.     CHECK_HRESULT(hr, CVisioApplication, getHelpPaths);
  6009.     return BSTR_HELPER_CLASS(ret, TRUE);
  6010. }
  6011.  
  6012.  
  6013. VW_INLINE void CVisioApplication::putHelpPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6014. {
  6015.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6016.     CHECK_IP(GetIP(), CVisioApplication, putHelpPaths);
  6017.     if (NULL!=GetIP())
  6018.         hr= GetIP()->put_HelpPaths(param01);
  6019.     CHECK_HRESULT(hr, CVisioApplication, putHelpPaths);
  6020. }
  6021.  
  6022.  
  6023. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getStartupPaths()
  6024. {
  6025.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6026.     BSTR ret= 0;
  6027.     CHECK_IP(GetIP(), CVisioApplication, getStartupPaths);
  6028.     if (NULL!=GetIP())
  6029.         hr= GetIP()->get_StartupPaths(&ret);
  6030.     CHECK_HRESULT(hr, CVisioApplication, getStartupPaths);
  6031.     return BSTR_HELPER_CLASS(ret, TRUE);
  6032. }
  6033.  
  6034.  
  6035. VW_INLINE void CVisioApplication::putStartupPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6036. {
  6037.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6038.     CHECK_IP(GetIP(), CVisioApplication, putStartupPaths);
  6039.     if (NULL!=GetIP())
  6040.         hr= GetIP()->put_StartupPaths(param01);
  6041.     CHECK_HRESULT(hr, CVisioApplication, putStartupPaths);
  6042. }
  6043.  
  6044.  
  6045. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getStencilPaths()
  6046. {
  6047.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6048.     BSTR ret= 0;
  6049.     CHECK_IP(GetIP(), CVisioApplication, getStencilPaths);
  6050.     if (NULL!=GetIP())
  6051.         hr= GetIP()->get_StencilPaths(&ret);
  6052.     CHECK_HRESULT(hr, CVisioApplication, getStencilPaths);
  6053.     return BSTR_HELPER_CLASS(ret, TRUE);
  6054. }
  6055.  
  6056.  
  6057. VW_INLINE void CVisioApplication::putStencilPaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6058. {
  6059.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6060.     CHECK_IP(GetIP(), CVisioApplication, putStencilPaths);
  6061.     if (NULL!=GetIP())
  6062.         hr= GetIP()->put_StencilPaths(param01);
  6063.     CHECK_HRESULT(hr, CVisioApplication, putStencilPaths);
  6064. }
  6065.  
  6066.  
  6067. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getTemplatePaths()
  6068. {
  6069.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6070.     BSTR ret= 0;
  6071.     CHECK_IP(GetIP(), CVisioApplication, getTemplatePaths);
  6072.     if (NULL!=GetIP())
  6073.         hr= GetIP()->get_TemplatePaths(&ret);
  6074.     CHECK_HRESULT(hr, CVisioApplication, getTemplatePaths);
  6075.     return BSTR_HELPER_CLASS(ret, TRUE);
  6076. }
  6077.  
  6078.  
  6079. VW_INLINE void CVisioApplication::putTemplatePaths(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6080. {
  6081.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6082.     CHECK_IP(GetIP(), CVisioApplication, putTemplatePaths);
  6083.     if (NULL!=GetIP())
  6084.         hr= GetIP()->put_TemplatePaths(param01);
  6085.     CHECK_HRESULT(hr, CVisioApplication, putTemplatePaths);
  6086. }
  6087.  
  6088.  
  6089. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::getUserName()
  6090. {
  6091.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6092.     BSTR ret= 0;
  6093.     CHECK_IP(GetIP(), CVisioApplication, getUserName);
  6094.     if (NULL!=GetIP())
  6095.         hr= GetIP()->get_UserName(&ret);
  6096.     CHECK_HRESULT(hr, CVisioApplication, getUserName);
  6097.     return BSTR_HELPER_CLASS(ret, TRUE);
  6098. }
  6099.  
  6100.  
  6101. VW_INLINE void CVisioApplication::putUserName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6102. {
  6103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6104.     CHECK_IP(GetIP(), CVisioApplication, putUserName);
  6105.     if (NULL!=GetIP())
  6106.         hr= GetIP()->put_UserName(param01);
  6107.     CHECK_HRESULT(hr, CVisioApplication, putUserName);
  6108. }
  6109.  
  6110.  
  6111. VW_INLINE short CVisioApplication::getPromptForSummary()
  6112. {
  6113.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6114.     short ret= 0;
  6115.     CHECK_IP(GetIP(), CVisioApplication, getPromptForSummary);
  6116.     if (NULL!=GetIP())
  6117.         hr= GetIP()->get_PromptForSummary(&ret);
  6118.     CHECK_HRESULT(hr, CVisioApplication, getPromptForSummary);
  6119.     return ret;
  6120. }
  6121.  
  6122.  
  6123. VW_INLINE void CVisioApplication::putPromptForSummary(VW_CONST short param01)
  6124. {
  6125.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6126.     CHECK_IP(GetIP(), CVisioApplication, putPromptForSummary);
  6127.     if (NULL!=GetIP())
  6128.         hr= GetIP()->put_PromptForSummary(param01);
  6129.     CHECK_HRESULT(hr, CVisioApplication, putPromptForSummary);
  6130. }
  6131.  
  6132.  
  6133. VW_INLINE CVisioAddons FAR CVisioApplication::Addons()
  6134. {
  6135.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6136.     IVAddons FAR *lpRet= NULL;
  6137.     CHECK_IP(GetIP(), CVisioApplication, Addons);
  6138.     if (NULL!=GetIP())
  6139.         hr= GetIP()->get_Addons(&lpRet);
  6140.     CHECK_HRESULT(hr, CVisioApplication, Addons);
  6141.     return CVisioAddons(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6142. }
  6143.  
  6144.  
  6145. VW_INLINE void CVisioApplication::SaveWorkspaceAs(BSTR_HELPER_CLASS FAR &FileName)
  6146. {
  6147.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6148.     CHECK_IP(GetIP(), CVisioApplication, SaveWorkspaceAs);
  6149.     if (NULL!=GetIP())
  6150.         hr= GetIP()->SaveWorkspaceAs(FileName);
  6151.     CHECK_HRESULT(hr, CVisioApplication, SaveWorkspaceAs);
  6152. }
  6153.  
  6154.  
  6155. VW_INLINE void CVisioApplication::DoCmd(short CommandID)
  6156. {
  6157.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6158.     CHECK_IP(GetIP(), CVisioApplication, DoCmd);
  6159.     if (NULL!=GetIP())
  6160.         hr= GetIP()->DoCmd(CommandID);
  6161.     CHECK_HRESULT(hr, CVisioApplication, DoCmd);
  6162. }
  6163.  
  6164.  
  6165. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::ProfileName()
  6166. {
  6167.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6168.     BSTR ret= 0;
  6169.     CHECK_IP(GetIP(), CVisioApplication, ProfileName);
  6170.     if (NULL!=GetIP())
  6171.         hr= GetIP()->get_ProfileName(&ret);
  6172.     CHECK_HRESULT(hr, CVisioApplication, ProfileName);
  6173.     return BSTR_HELPER_CLASS(ret, TRUE);
  6174. }
  6175.  
  6176.  
  6177. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::EventInfo(long reservedPass0)
  6178. {
  6179.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6180.     BSTR ret= 0;
  6181.     CHECK_IP(GetIP(), CVisioApplication, EventInfo);
  6182.     if (NULL!=GetIP())
  6183.         hr= GetIP()->get_EventInfo(reservedPass0, &ret);
  6184.     CHECK_HRESULT(hr, CVisioApplication, EventInfo);
  6185.     return BSTR_HELPER_CLASS(ret, TRUE);
  6186. }
  6187.  
  6188.  
  6189. VW_INLINE CVisioEventList FAR CVisioApplication::EventList()
  6190. {
  6191.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6192.     IVEventList FAR *lpRet= NULL;
  6193.     CHECK_IP(GetIP(), CVisioApplication, EventList);
  6194.     if (NULL!=GetIP())
  6195.         hr= GetIP()->get_EventList(&lpRet);
  6196.     CHECK_HRESULT(hr, CVisioApplication, EventList);
  6197.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6198. }
  6199.  
  6200.  
  6201. VW_INLINE short CVisioApplication::PersistsEvents()
  6202. {
  6203.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6204.     short ret= 0;
  6205.     CHECK_IP(GetIP(), CVisioApplication, PersistsEvents);
  6206.     if (NULL!=GetIP())
  6207.         hr= GetIP()->get_PersistsEvents(&ret);
  6208.     CHECK_HRESULT(hr, CVisioApplication, PersistsEvents);
  6209.     return ret;
  6210. }
  6211.  
  6212.  
  6213. VW_INLINE short CVisioApplication::Active()
  6214. {
  6215.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6216.     short ret= 0;
  6217.     CHECK_IP(GetIP(), CVisioApplication, Active);
  6218.     if (NULL!=GetIP())
  6219.         hr= GetIP()->get_Active(&ret);
  6220.     CHECK_HRESULT(hr, CVisioApplication, Active);
  6221.     return ret;
  6222. }
  6223.  
  6224.  
  6225. VW_INLINE short CVisioApplication::getDeferRecalc()
  6226. {
  6227.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6228.     short ret= 0;
  6229.     CHECK_IP(GetIP(), CVisioApplication, getDeferRecalc);
  6230.     if (NULL!=GetIP())
  6231.         hr= GetIP()->get_DeferRecalc(&ret);
  6232.     CHECK_HRESULT(hr, CVisioApplication, getDeferRecalc);
  6233.     return ret;
  6234. }
  6235.  
  6236.  
  6237. VW_INLINE void CVisioApplication::putDeferRecalc(VW_CONST short param01)
  6238. {
  6239.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6240.     CHECK_IP(GetIP(), CVisioApplication, putDeferRecalc);
  6241.     if (NULL!=GetIP())
  6242.         hr= GetIP()->put_DeferRecalc(param01);
  6243.     CHECK_HRESULT(hr, CVisioApplication, putDeferRecalc);
  6244. }
  6245.  
  6246.  
  6247. VW_INLINE short CVisioApplication::getAlertResponse()
  6248. {
  6249.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6250.     short ret= 0;
  6251.     CHECK_IP(GetIP(), CVisioApplication, getAlertResponse);
  6252.     if (NULL!=GetIP())
  6253.         hr= GetIP()->get_AlertResponse(&ret);
  6254.     CHECK_HRESULT(hr, CVisioApplication, getAlertResponse);
  6255.     return ret;
  6256. }
  6257.  
  6258.  
  6259. VW_INLINE void CVisioApplication::putAlertResponse(VW_CONST short param01)
  6260. {
  6261.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6262.     CHECK_IP(GetIP(), CVisioApplication, putAlertResponse);
  6263.     if (NULL!=GetIP())
  6264.         hr= GetIP()->put_AlertResponse(param01);
  6265.     CHECK_HRESULT(hr, CVisioApplication, putAlertResponse);
  6266. }
  6267.  
  6268.  
  6269. VW_INLINE short CVisioApplication::getShowProgress()
  6270. {
  6271.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6272.     short ret= 0;
  6273.     CHECK_IP(GetIP(), CVisioApplication, getShowProgress);
  6274.     if (NULL!=GetIP())
  6275.         hr= GetIP()->get_ShowProgress(&ret);
  6276.     CHECK_HRESULT(hr, CVisioApplication, getShowProgress);
  6277.     return ret;
  6278. }
  6279.  
  6280.  
  6281. VW_INLINE void CVisioApplication::putShowProgress(VW_CONST short param01)
  6282. {
  6283.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6284.     CHECK_IP(GetIP(), CVisioApplication, putShowProgress);
  6285.     if (NULL!=GetIP())
  6286.         hr= GetIP()->put_ShowProgress(param01);
  6287.     CHECK_HRESULT(hr, CVisioApplication, putShowProgress);
  6288. }
  6289.  
  6290.  
  6291. VW_INLINE IDispatch FAR *CVisioApplication::Vbe()
  6292. {
  6293.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6294.     IDispatch FAR *lpRet= NULL;
  6295.     CHECK_IP(GetIP(), CVisioApplication, Vbe);
  6296.     if (NULL!=GetIP())
  6297.         hr= GetIP()->get_Vbe(&lpRet);
  6298.     CHECK_HRESULT(hr, CVisioApplication, Vbe);
  6299.     return lpRet;
  6300. }
  6301.  
  6302.  
  6303. VW_INLINE short CVisioApplication::getShowMenus()
  6304. {
  6305.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6306.     short ret= 0;
  6307.     CHECK_IP(GetIP(), CVisioApplication, getShowMenus);
  6308.     if (NULL!=GetIP())
  6309.         hr= GetIP()->get_ShowMenus(&ret);
  6310.     CHECK_HRESULT(hr, CVisioApplication, getShowMenus);
  6311.     return ret;
  6312. }
  6313.  
  6314.  
  6315. VW_INLINE void CVisioApplication::putShowMenus(VW_CONST short param01)
  6316. {
  6317.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6318.     CHECK_IP(GetIP(), CVisioApplication, putShowMenus);
  6319.     if (NULL!=GetIP())
  6320.         hr= GetIP()->put_ShowMenus(param01);
  6321.     CHECK_HRESULT(hr, CVisioApplication, putShowMenus);
  6322. }
  6323.  
  6324.  
  6325. VW_INLINE short CVisioApplication::getToolbarStyle()
  6326. {
  6327.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6328.     short ret= 0;
  6329.     CHECK_IP(GetIP(), CVisioApplication, getToolbarStyle);
  6330.     if (NULL!=GetIP())
  6331.         hr= GetIP()->get_ToolbarStyle(&ret);
  6332.     CHECK_HRESULT(hr, CVisioApplication, getToolbarStyle);
  6333.     return ret;
  6334. }
  6335.  
  6336.  
  6337. VW_INLINE void CVisioApplication::putToolbarStyle(VW_CONST short param01)
  6338. {
  6339.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6340.     CHECK_IP(GetIP(), CVisioApplication, putToolbarStyle);
  6341.     if (NULL!=GetIP())
  6342.         hr= GetIP()->put_ToolbarStyle(param01);
  6343.     CHECK_HRESULT(hr, CVisioApplication, putToolbarStyle);
  6344. }
  6345.  
  6346.  
  6347. VW_INLINE short CVisioApplication::getShowStatusBar()
  6348. {
  6349.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6350.     short ret= 0;
  6351.     CHECK_IP(GetIP(), CVisioApplication, getShowStatusBar);
  6352.     if (NULL!=GetIP())
  6353.         hr= GetIP()->get_ShowStatusBar(&ret);
  6354.     CHECK_HRESULT(hr, CVisioApplication, getShowStatusBar);
  6355.     return ret;
  6356. }
  6357.  
  6358.  
  6359. VW_INLINE void CVisioApplication::putShowStatusBar(VW_CONST short param01)
  6360. {
  6361.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6362.     CHECK_IP(GetIP(), CVisioApplication, putShowStatusBar);
  6363.     if (NULL!=GetIP())
  6364.         hr= GetIP()->put_ShowStatusBar(param01);
  6365.     CHECK_HRESULT(hr, CVisioApplication, putShowStatusBar);
  6366. }
  6367.  
  6368.  
  6369. VW_INLINE short CVisioApplication::getEventsEnabled()
  6370. {
  6371.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6372.     short ret= 0;
  6373.     CHECK_IP(GetIP(), CVisioApplication, getEventsEnabled);
  6374.     if (NULL!=GetIP())
  6375.         hr= GetIP()->get_EventsEnabled(&ret);
  6376.     CHECK_HRESULT(hr, CVisioApplication, getEventsEnabled);
  6377.     return ret;
  6378. }
  6379.  
  6380.  
  6381. VW_INLINE void CVisioApplication::putEventsEnabled(VW_CONST short param01)
  6382. {
  6383.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6384.     CHECK_IP(GetIP(), CVisioApplication, putEventsEnabled);
  6385.     if (NULL!=GetIP())
  6386.         hr= GetIP()->put_EventsEnabled(param01);
  6387.     CHECK_HRESULT(hr, CVisioApplication, putEventsEnabled);
  6388. }
  6389.  
  6390.  
  6391. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::FormatResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut, BSTR_HELPER_CLASS FAR &Format)
  6392. {
  6393.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6394.     BSTR ret= 0;
  6395.     CHECK_IP(GetIP(), CVisioApplication, FormatResult);
  6396.     if (NULL!=GetIP())
  6397.         hr= GetIP()->FormatResult(StringOrNumber, UnitsIn, UnitsOut, Format, &ret);
  6398.     CHECK_HRESULT(hr, CVisioApplication, FormatResult);
  6399.     return BSTR_HELPER_CLASS(ret, TRUE);
  6400. }
  6401.  
  6402.  
  6403. VW_INLINE double CVisioApplication::ConvertResult(VARIANT_HELPER_CLASS FAR &StringOrNumber, VARIANT_HELPER_CLASS FAR &UnitsIn, VARIANT_HELPER_CLASS FAR &UnitsOut)
  6404. {
  6405.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6406.     double ret= 0;
  6407.     CHECK_IP(GetIP(), CVisioApplication, ConvertResult);
  6408.     if (NULL!=GetIP())
  6409.         hr= GetIP()->ConvertResult(StringOrNumber, UnitsIn, UnitsOut, &ret);
  6410.     CHECK_HRESULT(hr, CVisioApplication, ConvertResult);
  6411.     return ret;
  6412. }
  6413.  
  6414.  
  6415. VW_INLINE BSTR_HELPER_CLASS FAR CVisioApplication::Path()
  6416. {
  6417.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6418.     BSTR ret= 0;
  6419.     CHECK_IP(GetIP(), CVisioApplication, Path);
  6420.     if (NULL!=GetIP())
  6421.         hr= GetIP()->get_Path(&ret);
  6422.     CHECK_HRESULT(hr, CVisioApplication, Path);
  6423.     return BSTR_HELPER_CLASS(ret, TRUE);
  6424. }
  6425.  
  6426.  
  6427. VW_INLINE void CVisioApplication::EnumDirectories(BSTR_HELPER_CLASS FAR &PathsString, /*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  6428. {
  6429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6430.     CHECK_IP(GetIP(), CVisioApplication, EnumDirectories);
  6431.     if (NULL!=GetIP())
  6432.         hr= GetIP()->EnumDirectories(PathsString, NameArray);
  6433.     CHECK_HRESULT(hr, CVisioApplication, EnumDirectories);
  6434. }
  6435.  
  6436.  
  6437. VW_INLINE long CVisioApplication::getTraceFlags()
  6438. {
  6439.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6440.     long ret= 0;
  6441.     CHECK_IP(GetIP(), CVisioApplication, getTraceFlags);
  6442.     if (NULL!=GetIP())
  6443.         hr= GetIP()->get_TraceFlags(&ret);
  6444.     CHECK_HRESULT(hr, CVisioApplication, getTraceFlags);
  6445.     return ret;
  6446. }
  6447.  
  6448.  
  6449. VW_INLINE void CVisioApplication::putTraceFlags(VW_CONST long param01)
  6450. {
  6451.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6452.     CHECK_IP(GetIP(), CVisioApplication, putTraceFlags);
  6453.     if (NULL!=GetIP())
  6454.         hr= GetIP()->put_TraceFlags(param01);
  6455.     CHECK_HRESULT(hr, CVisioApplication, putTraceFlags);
  6456. }
  6457.  
  6458.  
  6459. VW_INLINE void CVisioApplication::PurgeUndo()
  6460. {
  6461.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6462.     CHECK_IP(GetIP(), CVisioApplication, PurgeUndo);
  6463.     if (NULL!=GetIP())
  6464.         hr= GetIP()->PurgeUndo();
  6465.     CHECK_HRESULT(hr, CVisioApplication, PurgeUndo);
  6466. }
  6467.  
  6468.  
  6469. VW_INLINE long CVisioApplication::QueueMarkerEvent(BSTR_HELPER_CLASS FAR &ContextString)
  6470. {
  6471.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6472.     long ret= 0;
  6473.     CHECK_IP(GetIP(), CVisioApplication, QueueMarkerEvent);
  6474.     if (NULL!=GetIP())
  6475.         hr= GetIP()->QueueMarkerEvent(ContextString, &ret);
  6476.     CHECK_HRESULT(hr, CVisioApplication, QueueMarkerEvent);
  6477.     return ret;
  6478. }
  6479.  
  6480.  
  6481. VW_INLINE short CVisioApplication::getShowToolbar()
  6482. {
  6483.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6484.     short ret= 0;
  6485.     CHECK_IP(GetIP(), CVisioApplication, getShowToolbar);
  6486.     if (NULL!=GetIP())
  6487.         hr= GetIP()->get_ShowToolbar(&ret);
  6488.     CHECK_HRESULT(hr, CVisioApplication, getShowToolbar);
  6489.     return ret;
  6490. }
  6491.  
  6492.  
  6493. VW_INLINE void CVisioApplication::putShowToolbar(VW_CONST short param01)
  6494. {
  6495.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6496.     CHECK_IP(GetIP(), CVisioApplication, putShowToolbar);
  6497.     if (NULL!=GetIP())
  6498.         hr= GetIP()->put_ShowToolbar(param01);
  6499.     CHECK_HRESULT(hr, CVisioApplication, putShowToolbar);
  6500. }
  6501.  
  6502.  
  6503.  
  6504. //  ***************************************************************************
  6505. //  Implementation of class CVisioCell
  6506.  
  6507. VW_INLINE CVisioApplication FAR CVisioCell::Application()
  6508. {
  6509.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6510.     IVApplication FAR *lpRet= NULL;
  6511.     CHECK_IP(GetIP(), CVisioCell, Application);
  6512.     if (NULL!=GetIP())
  6513.         hr= GetIP()->get_Application(&lpRet);
  6514.     CHECK_HRESULT(hr, CVisioCell, Application);
  6515.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6516. }
  6517.  
  6518.  
  6519. VW_INLINE short CVisioCell::ObjectType()
  6520. {
  6521.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6522.     short ret= 0;
  6523.     CHECK_IP(GetIP(), CVisioCell, ObjectType);
  6524.     if (NULL!=GetIP())
  6525.         hr= GetIP()->get_ObjectType(&ret);
  6526.     CHECK_HRESULT(hr, CVisioCell, ObjectType);
  6527.     return ret;
  6528. }
  6529.  
  6530.  
  6531. VW_INLINE short CVisioCell::Error()
  6532. {
  6533.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6534.     short ret= 0;
  6535.     CHECK_IP(GetIP(), CVisioCell, Error);
  6536.     if (NULL!=GetIP())
  6537.         hr= GetIP()->get_Error(&ret);
  6538.     CHECK_HRESULT(hr, CVisioCell, Error);
  6539.     return ret;
  6540. }
  6541.  
  6542.  
  6543. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCell::getFormula()
  6544. {
  6545.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6546.     BSTR ret= 0;
  6547.     CHECK_IP(GetIP(), CVisioCell, getFormula);
  6548.     if (NULL!=GetIP())
  6549.         hr= GetIP()->get_Formula(&ret);
  6550.     CHECK_HRESULT(hr, CVisioCell, getFormula);
  6551.     return BSTR_HELPER_CLASS(ret, TRUE);
  6552. }
  6553.  
  6554.  
  6555. VW_INLINE void CVisioCell::putFormula(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6556. {
  6557.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6558.     CHECK_IP(GetIP(), CVisioCell, putFormula);
  6559.     if (NULL!=GetIP())
  6560.         hr= GetIP()->put_Formula(param01);
  6561.     CHECK_HRESULT(hr, CVisioCell, putFormula);
  6562. }
  6563.  
  6564.  
  6565. VW_INLINE void CVisioCell::FormulaForce(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6566. {
  6567.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6568.     CHECK_IP(GetIP(), CVisioCell, FormulaForce);
  6569.     if (NULL!=GetIP())
  6570.         hr= GetIP()->put_FormulaForce(param01);
  6571.     CHECK_HRESULT(hr, CVisioCell, FormulaForce);
  6572. }
  6573.  
  6574.  
  6575. VW_INLINE void CVisioCell::GlueTo(CVisioCell FAR &CellObject)
  6576. {
  6577.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6578.     CHECK_IP(GetIP(), CVisioCell, GlueTo);
  6579.     if (NULL!=GetIP())
  6580.         hr= GetIP()->GlueTo(CellObject);
  6581.     CHECK_HRESULT(hr, CVisioCell, GlueTo);
  6582. }
  6583.  
  6584.  
  6585. VW_INLINE void CVisioCell::GlueToPos(CVisioShape FAR &SheetObject, double xPercent, double yPercent)
  6586. {
  6587.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6588.     CHECK_IP(GetIP(), CVisioCell, GlueToPos);
  6589.     if (NULL!=GetIP())
  6590.         hr= GetIP()->GlueToPos(SheetObject, xPercent, yPercent);
  6591.     CHECK_HRESULT(hr, CVisioCell, GlueToPos);
  6592. }
  6593.  
  6594.  
  6595. VW_INLINE double CVisioCell::getResult(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  6596. {
  6597.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6598.     double ret= 0;
  6599.     CHECK_IP(GetIP(), CVisioCell, getResult);
  6600.     if (NULL!=GetIP())
  6601.         hr= GetIP()->get_Result(UnitsNameOrCode, &ret);
  6602.     CHECK_HRESULT(hr, CVisioCell, getResult);
  6603.     return ret;
  6604. }
  6605.  
  6606.  
  6607. VW_INLINE void CVisioCell::putResult(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  6608. {
  6609.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6610.     CHECK_IP(GetIP(), CVisioCell, putResult);
  6611.     if (NULL!=GetIP())
  6612.         hr= GetIP()->put_Result(UnitsNameOrCode, param02);
  6613.     CHECK_HRESULT(hr, CVisioCell, putResult);
  6614. }
  6615.  
  6616.  
  6617. VW_INLINE void CVisioCell::ResultForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  6618. {
  6619.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6620.     CHECK_IP(GetIP(), CVisioCell, ResultForce);
  6621.     if (NULL!=GetIP())
  6622.         hr= GetIP()->put_ResultForce(UnitsNameOrCode, param02);
  6623.     CHECK_HRESULT(hr, CVisioCell, ResultForce);
  6624. }
  6625.  
  6626.  
  6627. VW_INLINE double CVisioCell::getResultIU()
  6628. {
  6629.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6630.     double ret= 0;
  6631.     CHECK_IP(GetIP(), CVisioCell, getResultIU);
  6632.     if (NULL!=GetIP())
  6633.         hr= GetIP()->get_ResultIU(&ret);
  6634.     CHECK_HRESULT(hr, CVisioCell, getResultIU);
  6635.     return ret;
  6636. }
  6637.  
  6638.  
  6639. VW_INLINE void CVisioCell::putResultIU(VW_CONST double param01)
  6640. {
  6641.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6642.     CHECK_IP(GetIP(), CVisioCell, putResultIU);
  6643.     if (NULL!=GetIP())
  6644.         hr= GetIP()->put_ResultIU(param01);
  6645.     CHECK_HRESULT(hr, CVisioCell, putResultIU);
  6646. }
  6647.  
  6648.  
  6649. VW_INLINE void CVisioCell::ResultIUForce(VW_CONST double param01)
  6650. {
  6651.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6652.     CHECK_IP(GetIP(), CVisioCell, ResultIUForce);
  6653.     if (NULL!=GetIP())
  6654.         hr= GetIP()->put_ResultIUForce(param01);
  6655.     CHECK_HRESULT(hr, CVisioCell, ResultIUForce);
  6656. }
  6657.  
  6658.  
  6659. VW_INLINE short CVisioCell::Stat()
  6660. {
  6661.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6662.     short ret= 0;
  6663.     CHECK_IP(GetIP(), CVisioCell, Stat);
  6664.     if (NULL!=GetIP())
  6665.         hr= GetIP()->get_Stat(&ret);
  6666.     CHECK_HRESULT(hr, CVisioCell, Stat);
  6667.     return ret;
  6668. }
  6669.  
  6670.  
  6671. VW_INLINE short CVisioCell::Units()
  6672. {
  6673.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6674.     short ret= 0;
  6675.     CHECK_IP(GetIP(), CVisioCell, Units);
  6676.     if (NULL!=GetIP())
  6677.         hr= GetIP()->get_Units(&ret);
  6678.     CHECK_HRESULT(hr, CVisioCell, Units);
  6679.     return ret;
  6680. }
  6681.  
  6682.  
  6683. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCell::Name()
  6684. {
  6685.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6686.     BSTR ret= 0;
  6687.     CHECK_IP(GetIP(), CVisioCell, Name);
  6688.     if (NULL!=GetIP())
  6689.         hr= GetIP()->get_Name(&ret);
  6690.     CHECK_HRESULT(hr, CVisioCell, Name);
  6691.     return BSTR_HELPER_CLASS(ret, TRUE);
  6692. }
  6693.  
  6694.  
  6695. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCell::LocalName()
  6696. {
  6697.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6698.     BSTR ret= 0;
  6699.     CHECK_IP(GetIP(), CVisioCell, LocalName);
  6700.     if (NULL!=GetIP())
  6701.         hr= GetIP()->get_LocalName(&ret);
  6702.     CHECK_HRESULT(hr, CVisioCell, LocalName);
  6703.     return BSTR_HELPER_CLASS(ret, TRUE);
  6704. }
  6705.  
  6706.  
  6707. VW_INLINE void CVisioCell::putRowName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  6708. {
  6709.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6710.     CHECK_IP(GetIP(), CVisioCell, putRowName);
  6711.     if (NULL!=GetIP())
  6712.         hr= GetIP()->put_RowName(param01);
  6713.     CHECK_HRESULT(hr, CVisioCell, putRowName);
  6714. }
  6715.  
  6716.  
  6717. VW_INLINE CVisioDocument FAR CVisioCell::Document()
  6718. {
  6719.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6720.     IVDocument FAR *lpRet= NULL;
  6721.     CHECK_IP(GetIP(), CVisioCell, Document);
  6722.     if (NULL!=GetIP())
  6723.         hr= GetIP()->get_Document(&lpRet);
  6724.     CHECK_HRESULT(hr, CVisioCell, Document);
  6725.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6726. }
  6727.  
  6728.  
  6729. VW_INLINE CVisioShape FAR CVisioCell::Shape()
  6730. {
  6731.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6732.     IVShape FAR *lpRet= NULL;
  6733.     CHECK_IP(GetIP(), CVisioCell, Shape);
  6734.     if (NULL!=GetIP())
  6735.         hr= GetIP()->get_Shape(&lpRet);
  6736.     CHECK_HRESULT(hr, CVisioCell, Shape);
  6737.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6738. }
  6739.  
  6740.  
  6741. VW_INLINE CVisioStyle FAR CVisioCell::Style()
  6742. {
  6743.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6744.     IVStyle FAR *lpRet= NULL;
  6745.     CHECK_IP(GetIP(), CVisioCell, Style);
  6746.     if (NULL!=GetIP())
  6747.         hr= GetIP()->get_Style(&lpRet);
  6748.     CHECK_HRESULT(hr, CVisioCell, Style);
  6749.     return CVisioStyle(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6750. }
  6751.  
  6752.  
  6753. VW_INLINE short CVisioCell::Section()
  6754. {
  6755.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6756.     short ret= 0;
  6757.     CHECK_IP(GetIP(), CVisioCell, Section);
  6758.     if (NULL!=GetIP())
  6759.         hr= GetIP()->get_Section(&ret);
  6760.     CHECK_HRESULT(hr, CVisioCell, Section);
  6761.     return ret;
  6762. }
  6763.  
  6764.  
  6765. VW_INLINE short CVisioCell::Row()
  6766. {
  6767.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6768.     short ret= 0;
  6769.     CHECK_IP(GetIP(), CVisioCell, Row);
  6770.     if (NULL!=GetIP())
  6771.         hr= GetIP()->get_Row(&ret);
  6772.     CHECK_HRESULT(hr, CVisioCell, Row);
  6773.     return ret;
  6774. }
  6775.  
  6776.  
  6777. VW_INLINE short CVisioCell::Column()
  6778. {
  6779.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6780.     short ret= 0;
  6781.     CHECK_IP(GetIP(), CVisioCell, Column);
  6782.     if (NULL!=GetIP())
  6783.         hr= GetIP()->get_Column(&ret);
  6784.     CHECK_HRESULT(hr, CVisioCell, Column);
  6785.     return ret;
  6786. }
  6787.  
  6788.  
  6789. VW_INLINE short CVisioCell::IsConstant()
  6790. {
  6791.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6792.     short ret= 0;
  6793.     CHECK_IP(GetIP(), CVisioCell, IsConstant);
  6794.     if (NULL!=GetIP())
  6795.         hr= GetIP()->get_IsConstant(&ret);
  6796.     CHECK_HRESULT(hr, CVisioCell, IsConstant);
  6797.     return ret;
  6798. }
  6799.  
  6800.  
  6801. VW_INLINE short CVisioCell::IsInherited()
  6802. {
  6803.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6804.     short ret= 0;
  6805.     CHECK_IP(GetIP(), CVisioCell, IsInherited);
  6806.     if (NULL!=GetIP())
  6807.         hr= GetIP()->get_IsInherited(&ret);
  6808.     CHECK_HRESULT(hr, CVisioCell, IsInherited);
  6809.     return ret;
  6810. }
  6811.  
  6812.  
  6813. VW_INLINE long CVisioCell::ResultInt(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, short fRound)
  6814. {
  6815.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6816.     long ret= 0;
  6817.     CHECK_IP(GetIP(), CVisioCell, ResultInt);
  6818.     if (NULL!=GetIP())
  6819.         hr= GetIP()->get_ResultInt(UnitsNameOrCode, fRound, &ret);
  6820.     CHECK_HRESULT(hr, CVisioCell, ResultInt);
  6821.     return ret;
  6822. }
  6823.  
  6824.  
  6825. VW_INLINE void CVisioCell::ResultFromInt(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02)
  6826. {
  6827.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6828.     CHECK_IP(GetIP(), CVisioCell, ResultFromInt);
  6829.     if (NULL!=GetIP())
  6830.         hr= GetIP()->put_ResultFromInt(UnitsNameOrCode, param02);
  6831.     CHECK_HRESULT(hr, CVisioCell, ResultFromInt);
  6832. }
  6833.  
  6834.  
  6835. VW_INLINE void CVisioCell::ResultFromIntForce(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST long param02)
  6836. {
  6837.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6838.     CHECK_IP(GetIP(), CVisioCell, ResultFromIntForce);
  6839.     if (NULL!=GetIP())
  6840.         hr= GetIP()->put_ResultFromIntForce(UnitsNameOrCode, param02);
  6841.     CHECK_HRESULT(hr, CVisioCell, ResultFromIntForce);
  6842. }
  6843.  
  6844.  
  6845. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCell::ResultStr(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  6846. {
  6847.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6848.     BSTR ret= 0;
  6849.     CHECK_IP(GetIP(), CVisioCell, ResultStr);
  6850.     if (NULL!=GetIP())
  6851.         hr= GetIP()->get_ResultStr(UnitsNameOrCode, &ret);
  6852.     CHECK_HRESULT(hr, CVisioCell, ResultStr);
  6853.     return BSTR_HELPER_CLASS(ret, TRUE);
  6854. }
  6855.  
  6856.  
  6857. VW_INLINE void CVisioCell::Trigger()
  6858. {
  6859.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6860.     CHECK_IP(GetIP(), CVisioCell, Trigger);
  6861.     if (NULL!=GetIP())
  6862.         hr= GetIP()->Trigger();
  6863.     CHECK_HRESULT(hr, CVisioCell, Trigger);
  6864. }
  6865.  
  6866.  
  6867. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCell::getRowName()
  6868. {
  6869.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6870.     BSTR ret= 0;
  6871.     CHECK_IP(GetIP(), CVisioCell, getRowName);
  6872.     if (NULL!=GetIP())
  6873.         hr= GetIP()->get_RowName(&ret);
  6874.     CHECK_HRESULT(hr, CVisioCell, getRowName);
  6875.     return BSTR_HELPER_CLASS(ret, TRUE);
  6876. }
  6877.  
  6878.  
  6879. VW_INLINE CVisioEventList FAR CVisioCell::EventList()
  6880. {
  6881.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6882.     IVEventList FAR *lpRet= NULL;
  6883.     CHECK_IP(GetIP(), CVisioCell, EventList);
  6884.     if (NULL!=GetIP())
  6885.         hr= GetIP()->get_EventList(&lpRet);
  6886.     CHECK_HRESULT(hr, CVisioCell, EventList);
  6887.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6888. }
  6889.  
  6890.  
  6891. VW_INLINE short CVisioCell::PersistsEvents()
  6892. {
  6893.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6894.     short ret= 0;
  6895.     CHECK_IP(GetIP(), CVisioCell, PersistsEvents);
  6896.     if (NULL!=GetIP())
  6897.         hr= GetIP()->get_PersistsEvents(&ret);
  6898.     CHECK_HRESULT(hr, CVisioCell, PersistsEvents);
  6899.     return ret;
  6900. }
  6901.  
  6902.  
  6903.  
  6904. //  ***************************************************************************
  6905. //  Implementation of class CVisioCharacters
  6906.  
  6907. VW_INLINE void CVisioCharacters::AddCustomField(BSTR_HELPER_CLASS FAR &Formula, short Format)
  6908. {
  6909.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6910.     CHECK_IP(GetIP(), CVisioCharacters, AddCustomField);
  6911.     if (NULL!=GetIP())
  6912.         hr= GetIP()->AddCustomField(Formula, Format);
  6913.     CHECK_HRESULT(hr, CVisioCharacters, AddCustomField);
  6914. }
  6915.  
  6916.  
  6917. VW_INLINE void CVisioCharacters::AddField(short Category, short Code, short Format)
  6918. {
  6919.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6920.     CHECK_IP(GetIP(), CVisioCharacters, AddField);
  6921.     if (NULL!=GetIP())
  6922.         hr= GetIP()->AddField(Category, Code, Format);
  6923.     CHECK_HRESULT(hr, CVisioCharacters, AddField);
  6924. }
  6925.  
  6926.  
  6927. VW_INLINE CVisioApplication FAR CVisioCharacters::Application()
  6928. {
  6929.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6930.     IVApplication FAR *lpRet= NULL;
  6931.     CHECK_IP(GetIP(), CVisioCharacters, Application);
  6932.     if (NULL!=GetIP())
  6933.         hr= GetIP()->get_Application(&lpRet);
  6934.     CHECK_HRESULT(hr, CVisioCharacters, Application);
  6935.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  6936. }
  6937.  
  6938.  
  6939. VW_INLINE long CVisioCharacters::getBegin()
  6940. {
  6941.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6942.     long ret= 0;
  6943.     CHECK_IP(GetIP(), CVisioCharacters, getBegin);
  6944.     if (NULL!=GetIP())
  6945.         hr= GetIP()->get_Begin(&ret);
  6946.     CHECK_HRESULT(hr, CVisioCharacters, getBegin);
  6947.     return ret;
  6948. }
  6949.  
  6950.  
  6951. VW_INLINE void CVisioCharacters::putBegin(VW_CONST long param01)
  6952. {
  6953.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6954.     CHECK_IP(GetIP(), CVisioCharacters, putBegin);
  6955.     if (NULL!=GetIP())
  6956.         hr= GetIP()->put_Begin(param01);
  6957.     CHECK_HRESULT(hr, CVisioCharacters, putBegin);
  6958. }
  6959.  
  6960.  
  6961. VW_INLINE long CVisioCharacters::CharCount()
  6962. {
  6963.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6964.     long ret= 0;
  6965.     CHECK_IP(GetIP(), CVisioCharacters, CharCount);
  6966.     if (NULL!=GetIP())
  6967.         hr= GetIP()->get_CharCount(&ret);
  6968.     CHECK_HRESULT(hr, CVisioCharacters, CharCount);
  6969.     return ret;
  6970. }
  6971.  
  6972.  
  6973. VW_INLINE void CVisioCharacters::CharProps(VW_CONST short CellIndex, VW_CONST short param02)
  6974. {
  6975.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6976.     CHECK_IP(GetIP(), CVisioCharacters, CharProps);
  6977.     if (NULL!=GetIP())
  6978.         hr= GetIP()->put_CharProps(CellIndex, param02);
  6979.     CHECK_HRESULT(hr, CVisioCharacters, CharProps);
  6980. }
  6981.  
  6982.  
  6983. VW_INLINE short CVisioCharacters::CharPropsRow(short BiasLorR)
  6984. {
  6985.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6986.     short ret= 0;
  6987.     CHECK_IP(GetIP(), CVisioCharacters, CharPropsRow);
  6988.     if (NULL!=GetIP())
  6989.         hr= GetIP()->get_CharPropsRow(BiasLorR, &ret);
  6990.     CHECK_HRESULT(hr, CVisioCharacters, CharPropsRow);
  6991.     return ret;
  6992. }
  6993.  
  6994.  
  6995. VW_INLINE void CVisioCharacters::Copy()
  6996. {
  6997.     HRESULT hr= VW_INTERFACE_NOT_SET;
  6998.     CHECK_IP(GetIP(), CVisioCharacters, Copy);
  6999.     if (NULL!=GetIP())
  7000.         hr= GetIP()->Copy();
  7001.     CHECK_HRESULT(hr, CVisioCharacters, Copy);
  7002. }
  7003.  
  7004.  
  7005. VW_INLINE void CVisioCharacters::Cut()
  7006. {
  7007.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7008.     CHECK_IP(GetIP(), CVisioCharacters, Cut);
  7009.     if (NULL!=GetIP())
  7010.         hr= GetIP()->Cut();
  7011.     CHECK_HRESULT(hr, CVisioCharacters, Cut);
  7012. }
  7013.  
  7014.  
  7015. VW_INLINE short CVisioCharacters::ObjectType()
  7016. {
  7017.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7018.     short ret= 0;
  7019.     CHECK_IP(GetIP(), CVisioCharacters, ObjectType);
  7020.     if (NULL!=GetIP())
  7021.         hr= GetIP()->get_ObjectType(&ret);
  7022.     CHECK_HRESULT(hr, CVisioCharacters, ObjectType);
  7023.     return ret;
  7024. }
  7025.  
  7026.  
  7027. VW_INLINE long CVisioCharacters::getEnd()
  7028. {
  7029.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7030.     long ret= 0;
  7031.     CHECK_IP(GetIP(), CVisioCharacters, getEnd);
  7032.     if (NULL!=GetIP())
  7033.         hr= GetIP()->get_End(&ret);
  7034.     CHECK_HRESULT(hr, CVisioCharacters, getEnd);
  7035.     return ret;
  7036. }
  7037.  
  7038.  
  7039. VW_INLINE void CVisioCharacters::putEnd(VW_CONST long param01)
  7040. {
  7041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7042.     CHECK_IP(GetIP(), CVisioCharacters, putEnd);
  7043.     if (NULL!=GetIP())
  7044.         hr= GetIP()->put_End(param01);
  7045.     CHECK_HRESULT(hr, CVisioCharacters, putEnd);
  7046. }
  7047.  
  7048.  
  7049. VW_INLINE short CVisioCharacters::FieldCategory()
  7050. {
  7051.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7052.     short ret= 0;
  7053.     CHECK_IP(GetIP(), CVisioCharacters, FieldCategory);
  7054.     if (NULL!=GetIP())
  7055.         hr= GetIP()->get_FieldCategory(&ret);
  7056.     CHECK_HRESULT(hr, CVisioCharacters, FieldCategory);
  7057.     return ret;
  7058. }
  7059.  
  7060.  
  7061. VW_INLINE short CVisioCharacters::FieldCode()
  7062. {
  7063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7064.     short ret= 0;
  7065.     CHECK_IP(GetIP(), CVisioCharacters, FieldCode);
  7066.     if (NULL!=GetIP())
  7067.         hr= GetIP()->get_FieldCode(&ret);
  7068.     CHECK_HRESULT(hr, CVisioCharacters, FieldCode);
  7069.     return ret;
  7070. }
  7071.  
  7072.  
  7073. VW_INLINE short CVisioCharacters::FieldFormat()
  7074. {
  7075.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7076.     short ret= 0;
  7077.     CHECK_IP(GetIP(), CVisioCharacters, FieldFormat);
  7078.     if (NULL!=GetIP())
  7079.         hr= GetIP()->get_FieldFormat(&ret);
  7080.     CHECK_HRESULT(hr, CVisioCharacters, FieldFormat);
  7081.     return ret;
  7082. }
  7083.  
  7084.  
  7085. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCharacters::FieldFormula()
  7086. {
  7087.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7088.     BSTR ret= 0;
  7089.     CHECK_IP(GetIP(), CVisioCharacters, FieldFormula);
  7090.     if (NULL!=GetIP())
  7091.         hr= GetIP()->get_FieldFormula(&ret);
  7092.     CHECK_HRESULT(hr, CVisioCharacters, FieldFormula);
  7093.     return BSTR_HELPER_CLASS(ret, TRUE);
  7094. }
  7095.  
  7096.  
  7097. VW_INLINE short CVisioCharacters::IsField()
  7098. {
  7099.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7100.     short ret= 0;
  7101.     CHECK_IP(GetIP(), CVisioCharacters, IsField);
  7102.     if (NULL!=GetIP())
  7103.         hr= GetIP()->get_IsField(&ret);
  7104.     CHECK_HRESULT(hr, CVisioCharacters, IsField);
  7105.     return ret;
  7106. }
  7107.  
  7108.  
  7109. VW_INLINE void CVisioCharacters::ParaProps(VW_CONST short CellIndex, VW_CONST short param02)
  7110. {
  7111.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7112.     CHECK_IP(GetIP(), CVisioCharacters, ParaProps);
  7113.     if (NULL!=GetIP())
  7114.         hr= GetIP()->put_ParaProps(CellIndex, param02);
  7115.     CHECK_HRESULT(hr, CVisioCharacters, ParaProps);
  7116. }
  7117.  
  7118.  
  7119. VW_INLINE short CVisioCharacters::ParaPropsRow(short BiasLorR)
  7120. {
  7121.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7122.     short ret= 0;
  7123.     CHECK_IP(GetIP(), CVisioCharacters, ParaPropsRow);
  7124.     if (NULL!=GetIP())
  7125.         hr= GetIP()->get_ParaPropsRow(BiasLorR, &ret);
  7126.     CHECK_HRESULT(hr, CVisioCharacters, ParaPropsRow);
  7127.     return ret;
  7128. }
  7129.  
  7130.  
  7131. VW_INLINE void CVisioCharacters::Paste()
  7132. {
  7133.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7134.     CHECK_IP(GetIP(), CVisioCharacters, Paste);
  7135.     if (NULL!=GetIP())
  7136.         hr= GetIP()->Paste();
  7137.     CHECK_HRESULT(hr, CVisioCharacters, Paste);
  7138. }
  7139.  
  7140.  
  7141. VW_INLINE short CVisioCharacters::TabPropsRow(short BiasLorR)
  7142. {
  7143.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7144.     short ret= 0;
  7145.     CHECK_IP(GetIP(), CVisioCharacters, TabPropsRow);
  7146.     if (NULL!=GetIP())
  7147.         hr= GetIP()->get_TabPropsRow(BiasLorR, &ret);
  7148.     CHECK_HRESULT(hr, CVisioCharacters, TabPropsRow);
  7149.     return ret;
  7150. }
  7151.  
  7152.  
  7153. VW_INLINE long CVisioCharacters::RunBegin(short RunType)
  7154. {
  7155.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7156.     long ret= 0;
  7157.     CHECK_IP(GetIP(), CVisioCharacters, RunBegin);
  7158.     if (NULL!=GetIP())
  7159.         hr= GetIP()->get_RunBegin(RunType, &ret);
  7160.     CHECK_HRESULT(hr, CVisioCharacters, RunBegin);
  7161.     return ret;
  7162. }
  7163.  
  7164.  
  7165. VW_INLINE long CVisioCharacters::RunEnd(short RunType)
  7166. {
  7167.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7168.     long ret= 0;
  7169.     CHECK_IP(GetIP(), CVisioCharacters, RunEnd);
  7170.     if (NULL!=GetIP())
  7171.         hr= GetIP()->get_RunEnd(RunType, &ret);
  7172.     CHECK_HRESULT(hr, CVisioCharacters, RunEnd);
  7173.     return ret;
  7174. }
  7175.  
  7176.  
  7177. VW_INLINE CVisioShape FAR CVisioCharacters::Shape()
  7178. {
  7179.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7180.     IVShape FAR *lpRet= NULL;
  7181.     CHECK_IP(GetIP(), CVisioCharacters, Shape);
  7182.     if (NULL!=GetIP())
  7183.         hr= GetIP()->get_Shape(&lpRet);
  7184.     CHECK_HRESULT(hr, CVisioCharacters, Shape);
  7185.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7186. }
  7187.  
  7188.  
  7189. VW_INLINE short CVisioCharacters::Stat()
  7190. {
  7191.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7192.     short ret= 0;
  7193.     CHECK_IP(GetIP(), CVisioCharacters, Stat);
  7194.     if (NULL!=GetIP())
  7195.         hr= GetIP()->get_Stat(&ret);
  7196.     CHECK_HRESULT(hr, CVisioCharacters, Stat);
  7197.     return ret;
  7198. }
  7199.  
  7200.  
  7201. VW_INLINE BSTR_HELPER_CLASS FAR CVisioCharacters::TextAsString()
  7202. {
  7203.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7204.     BSTR ret= 0;
  7205.     CHECK_IP(GetIP(), CVisioCharacters, TextAsString);
  7206.     if (NULL!=GetIP())
  7207.         hr= GetIP()->get_TextAsString(&ret);
  7208.     CHECK_HRESULT(hr, CVisioCharacters, TextAsString);
  7209.     return BSTR_HELPER_CLASS(ret, TRUE);
  7210. }
  7211.  
  7212.  
  7213. VW_INLINE void CVisioCharacters::putText(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01)
  7214. {
  7215.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7216.     CHECK_IP(GetIP(), CVisioCharacters, putText);
  7217.     if (NULL!=GetIP())
  7218.         hr= GetIP()->put_Text(param01);
  7219.     CHECK_HRESULT(hr, CVisioCharacters, putText);
  7220. }
  7221.  
  7222.  
  7223. VW_INLINE CVisioDocument FAR CVisioCharacters::Document()
  7224. {
  7225.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7226.     IVDocument FAR *lpRet= NULL;
  7227.     CHECK_IP(GetIP(), CVisioCharacters, Document);
  7228.     if (NULL!=GetIP())
  7229.         hr= GetIP()->get_Document(&lpRet);
  7230.     CHECK_HRESULT(hr, CVisioCharacters, Document);
  7231.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7232. }
  7233.  
  7234.  
  7235. VW_INLINE CVisioEventList FAR CVisioCharacters::EventList()
  7236. {
  7237.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7238.     IVEventList FAR *lpRet= NULL;
  7239.     CHECK_IP(GetIP(), CVisioCharacters, EventList);
  7240.     if (NULL!=GetIP())
  7241.         hr= GetIP()->get_EventList(&lpRet);
  7242.     CHECK_HRESULT(hr, CVisioCharacters, EventList);
  7243.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7244. }
  7245.  
  7246.  
  7247. VW_INLINE short CVisioCharacters::PersistsEvents()
  7248. {
  7249.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7250.     short ret= 0;
  7251.     CHECK_IP(GetIP(), CVisioCharacters, PersistsEvents);
  7252.     if (NULL!=GetIP())
  7253.         hr= GetIP()->get_PersistsEvents(&ret);
  7254.     CHECK_HRESULT(hr, CVisioCharacters, PersistsEvents);
  7255.     return ret;
  7256. }
  7257.  
  7258.  
  7259. VW_INLINE VARIANT_HELPER_CLASS FAR CVisioCharacters::getText()
  7260. {
  7261.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7262.     VARIANT ret;
  7263.     VariantInit(&ret);
  7264.     CHECK_IP(GetIP(), CVisioCharacters, getText);
  7265.     if (NULL!=GetIP())
  7266.         hr= GetIP()->get_Text(&ret);
  7267.     CHECK_HRESULT(hr, CVisioCharacters, getText);
  7268.     return VARIANT_HELPER_CLASS(ret);
  7269. }
  7270.  
  7271.  
  7272.  
  7273. //  ***************************************************************************
  7274. //  Implementation of class CVisioConnect
  7275.  
  7276. VW_INLINE CVisioApplication FAR CVisioConnect::Application()
  7277. {
  7278.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7279.     IVApplication FAR *lpRet= NULL;
  7280.     CHECK_IP(GetIP(), CVisioConnect, Application);
  7281.     if (NULL!=GetIP())
  7282.         hr= GetIP()->get_Application(&lpRet);
  7283.     CHECK_HRESULT(hr, CVisioConnect, Application);
  7284.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7285. }
  7286.  
  7287.  
  7288. VW_INLINE short CVisioConnect::Stat()
  7289. {
  7290.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7291.     short ret= 0;
  7292.     CHECK_IP(GetIP(), CVisioConnect, Stat);
  7293.     if (NULL!=GetIP())
  7294.         hr= GetIP()->get_Stat(&ret);
  7295.     CHECK_HRESULT(hr, CVisioConnect, Stat);
  7296.     return ret;
  7297. }
  7298.  
  7299.  
  7300. VW_INLINE CVisioShape FAR CVisioConnect::FromSheet()
  7301. {
  7302.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7303.     IVShape FAR *lpRet= NULL;
  7304.     CHECK_IP(GetIP(), CVisioConnect, FromSheet);
  7305.     if (NULL!=GetIP())
  7306.         hr= GetIP()->get_FromSheet(&lpRet);
  7307.     CHECK_HRESULT(hr, CVisioConnect, FromSheet);
  7308.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7309. }
  7310.  
  7311.  
  7312. VW_INLINE CVisioShape FAR CVisioConnect::ToSheet()
  7313. {
  7314.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7315.     IVShape FAR *lpRet= NULL;
  7316.     CHECK_IP(GetIP(), CVisioConnect, ToSheet);
  7317.     if (NULL!=GetIP())
  7318.         hr= GetIP()->get_ToSheet(&lpRet);
  7319.     CHECK_HRESULT(hr, CVisioConnect, ToSheet);
  7320.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7321. }
  7322.  
  7323.  
  7324. VW_INLINE CVisioCell FAR CVisioConnect::FromCell()
  7325. {
  7326.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7327.     IVCell FAR *lpRet= NULL;
  7328.     CHECK_IP(GetIP(), CVisioConnect, FromCell);
  7329.     if (NULL!=GetIP())
  7330.         hr= GetIP()->get_FromCell(&lpRet);
  7331.     CHECK_HRESULT(hr, CVisioConnect, FromCell);
  7332.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7333. }
  7334.  
  7335.  
  7336. VW_INLINE CVisioCell FAR CVisioConnect::ToCell()
  7337. {
  7338.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7339.     IVCell FAR *lpRet= NULL;
  7340.     CHECK_IP(GetIP(), CVisioConnect, ToCell);
  7341.     if (NULL!=GetIP())
  7342.         hr= GetIP()->get_ToCell(&lpRet);
  7343.     CHECK_HRESULT(hr, CVisioConnect, ToCell);
  7344.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7345. }
  7346.  
  7347.  
  7348. VW_INLINE short CVisioConnect::FromPart()
  7349. {
  7350.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7351.     short ret= 0;
  7352.     CHECK_IP(GetIP(), CVisioConnect, FromPart);
  7353.     if (NULL!=GetIP())
  7354.         hr= GetIP()->get_FromPart(&ret);
  7355.     CHECK_HRESULT(hr, CVisioConnect, FromPart);
  7356.     return ret;
  7357. }
  7358.  
  7359.  
  7360. VW_INLINE short CVisioConnect::ToPart()
  7361. {
  7362.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7363.     short ret= 0;
  7364.     CHECK_IP(GetIP(), CVisioConnect, ToPart);
  7365.     if (NULL!=GetIP())
  7366.         hr= GetIP()->get_ToPart(&ret);
  7367.     CHECK_HRESULT(hr, CVisioConnect, ToPart);
  7368.     return ret;
  7369. }
  7370.  
  7371.  
  7372. VW_INLINE short CVisioConnect::ObjectType()
  7373. {
  7374.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7375.     short ret= 0;
  7376.     CHECK_IP(GetIP(), CVisioConnect, ObjectType);
  7377.     if (NULL!=GetIP())
  7378.         hr= GetIP()->get_ObjectType(&ret);
  7379.     CHECK_HRESULT(hr, CVisioConnect, ObjectType);
  7380.     return ret;
  7381. }
  7382.  
  7383.  
  7384. VW_INLINE short CVisioConnect::Index()
  7385. {
  7386.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7387.     short ret= 0;
  7388.     CHECK_IP(GetIP(), CVisioConnect, Index);
  7389.     if (NULL!=GetIP())
  7390.         hr= GetIP()->get_Index(&ret);
  7391.     CHECK_HRESULT(hr, CVisioConnect, Index);
  7392.     return ret;
  7393. }
  7394.  
  7395.  
  7396. VW_INLINE CVisioDocument FAR CVisioConnect::Document()
  7397. {
  7398.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7399.     IVDocument FAR *lpRet= NULL;
  7400.     CHECK_IP(GetIP(), CVisioConnect, Document);
  7401.     if (NULL!=GetIP())
  7402.         hr= GetIP()->get_Document(&lpRet);
  7403.     CHECK_HRESULT(hr, CVisioConnect, Document);
  7404.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7405. }
  7406.  
  7407.  
  7408.  
  7409. //  ***************************************************************************
  7410. //  Implementation of class CVisioConnects
  7411.  
  7412. VW_INLINE CVisioApplication FAR CVisioConnects::Application()
  7413. {
  7414.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7415.     IVApplication FAR *lpRet= NULL;
  7416.     CHECK_IP(GetIP(), CVisioConnects, Application);
  7417.     if (NULL!=GetIP())
  7418.         hr= GetIP()->get_Application(&lpRet);
  7419.     CHECK_HRESULT(hr, CVisioConnects, Application);
  7420.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7421. }
  7422.  
  7423.  
  7424. VW_INLINE CVisioConnect FAR CVisioConnects::Item(short Index)
  7425. {
  7426.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7427.     IVConnect FAR *lpRet= NULL;
  7428.     CHECK_IP(GetIP(), CVisioConnects, Item);
  7429.     if (NULL!=GetIP())
  7430.         hr= GetIP()->get_Item(Index, &lpRet);
  7431.     CHECK_HRESULT(hr, CVisioConnects, Item);
  7432.     return CVisioConnect(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7433. }
  7434.  
  7435.  
  7436. VW_INLINE short CVisioConnects::Count()
  7437. {
  7438.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7439.     short ret= 0;
  7440.     CHECK_IP(GetIP(), CVisioConnects, Count);
  7441.     if (NULL!=GetIP())
  7442.         hr= GetIP()->get_Count(&ret);
  7443.     CHECK_HRESULT(hr, CVisioConnects, Count);
  7444.     return ret;
  7445. }
  7446.  
  7447.  
  7448. VW_INLINE CVisioShape FAR CVisioConnects::FromSheet()
  7449. {
  7450.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7451.     IVShape FAR *lpRet= NULL;
  7452.     CHECK_IP(GetIP(), CVisioConnects, FromSheet);
  7453.     if (NULL!=GetIP())
  7454.         hr= GetIP()->get_FromSheet(&lpRet);
  7455.     CHECK_HRESULT(hr, CVisioConnects, FromSheet);
  7456.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7457. }
  7458.  
  7459.  
  7460. VW_INLINE short CVisioConnects::ObjectType()
  7461. {
  7462.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7463.     short ret= 0;
  7464.     CHECK_IP(GetIP(), CVisioConnects, ObjectType);
  7465.     if (NULL!=GetIP())
  7466.         hr= GetIP()->get_ObjectType(&ret);
  7467.     CHECK_HRESULT(hr, CVisioConnects, ObjectType);
  7468.     return ret;
  7469. }
  7470.  
  7471.  
  7472. VW_INLINE CVisioDocument FAR CVisioConnects::Document()
  7473. {
  7474.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7475.     IVDocument FAR *lpRet= NULL;
  7476.     CHECK_IP(GetIP(), CVisioConnects, Document);
  7477.     if (NULL!=GetIP())
  7478.         hr= GetIP()->get_Document(&lpRet);
  7479.     CHECK_HRESULT(hr, CVisioConnects, Document);
  7480.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7481. }
  7482.  
  7483.  
  7484. VW_INLINE short CVisioConnects::Stat()
  7485. {
  7486.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7487.     short ret= 0;
  7488.     CHECK_IP(GetIP(), CVisioConnects, Stat);
  7489.     if (NULL!=GetIP())
  7490.         hr= GetIP()->get_Stat(&ret);
  7491.     CHECK_HRESULT(hr, CVisioConnects, Stat);
  7492.     return ret;
  7493. }
  7494.  
  7495.  
  7496. VW_INLINE CVisioShape FAR CVisioConnects::ToSheet()
  7497. {
  7498.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7499.     IVShape FAR *lpRet= NULL;
  7500.     CHECK_IP(GetIP(), CVisioConnects, ToSheet);
  7501.     if (NULL!=GetIP())
  7502.         hr= GetIP()->get_ToSheet(&lpRet);
  7503.     CHECK_HRESULT(hr, CVisioConnects, ToSheet);
  7504.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7505. }
  7506.  
  7507.  
  7508.  
  7509. //  ***************************************************************************
  7510. //  Implementation of class CVisioDocument
  7511.  
  7512. VW_INLINE CVisioApplication FAR CVisioDocument::Application()
  7513. {
  7514.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7515.     IVApplication FAR *lpRet= NULL;
  7516.     CHECK_IP(GetIP(), CVisioDocument, Application);
  7517.     if (NULL!=GetIP())
  7518.         hr= GetIP()->get_Application(&lpRet);
  7519.     CHECK_HRESULT(hr, CVisioDocument, Application);
  7520.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7521. }
  7522.  
  7523.  
  7524. VW_INLINE short CVisioDocument::Stat()
  7525. {
  7526.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7527.     short ret= 0;
  7528.     CHECK_IP(GetIP(), CVisioDocument, Stat);
  7529.     if (NULL!=GetIP())
  7530.         hr= GetIP()->get_Stat(&ret);
  7531.     CHECK_HRESULT(hr, CVisioDocument, Stat);
  7532.     return ret;
  7533. }
  7534.  
  7535.  
  7536. VW_INLINE short CVisioDocument::ObjectType()
  7537. {
  7538.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7539.     short ret= 0;
  7540.     CHECK_IP(GetIP(), CVisioDocument, ObjectType);
  7541.     if (NULL!=GetIP())
  7542.         hr= GetIP()->get_ObjectType(&ret);
  7543.     CHECK_HRESULT(hr, CVisioDocument, ObjectType);
  7544.     return ret;
  7545. }
  7546.  
  7547.  
  7548. VW_INLINE short CVisioDocument::InPlace()
  7549. {
  7550.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7551.     short ret= 0;
  7552.     CHECK_IP(GetIP(), CVisioDocument, InPlace);
  7553.     if (NULL!=GetIP())
  7554.         hr= GetIP()->get_InPlace(&ret);
  7555.     CHECK_HRESULT(hr, CVisioDocument, InPlace);
  7556.     return ret;
  7557. }
  7558.  
  7559.  
  7560. VW_INLINE CVisioMasters FAR CVisioDocument::Masters()
  7561. {
  7562.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7563.     IVMasters FAR *lpRet= NULL;
  7564.     CHECK_IP(GetIP(), CVisioDocument, Masters);
  7565.     if (NULL!=GetIP())
  7566.         hr= GetIP()->get_Masters(&lpRet);
  7567.     CHECK_HRESULT(hr, CVisioDocument, Masters);
  7568.     return CVisioMasters(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7569. }
  7570.  
  7571.  
  7572. VW_INLINE CVisioPages FAR CVisioDocument::Pages()
  7573. {
  7574.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7575.     IVPages FAR *lpRet= NULL;
  7576.     CHECK_IP(GetIP(), CVisioDocument, Pages);
  7577.     if (NULL!=GetIP())
  7578.         hr= GetIP()->get_Pages(&lpRet);
  7579.     CHECK_HRESULT(hr, CVisioDocument, Pages);
  7580.     return CVisioPages(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7581. }
  7582.  
  7583.  
  7584. VW_INLINE CVisioStyles FAR CVisioDocument::Styles()
  7585. {
  7586.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7587.     IVStyles FAR *lpRet= NULL;
  7588.     CHECK_IP(GetIP(), CVisioDocument, Styles);
  7589.     if (NULL!=GetIP())
  7590.         hr= GetIP()->get_Styles(&lpRet);
  7591.     CHECK_HRESULT(hr, CVisioDocument, Styles);
  7592.     return CVisioStyles(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7593. }
  7594.  
  7595.  
  7596. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::Name()
  7597. {
  7598.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7599.     BSTR ret= 0;
  7600.     CHECK_IP(GetIP(), CVisioDocument, Name);
  7601.     if (NULL!=GetIP())
  7602.         hr= GetIP()->get_Name(&ret);
  7603.     CHECK_HRESULT(hr, CVisioDocument, Name);
  7604.     return BSTR_HELPER_CLASS(ret, TRUE);
  7605. }
  7606.  
  7607.  
  7608. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::Path()
  7609. {
  7610.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7611.     BSTR ret= 0;
  7612.     CHECK_IP(GetIP(), CVisioDocument, Path);
  7613.     if (NULL!=GetIP())
  7614.         hr= GetIP()->get_Path(&ret);
  7615.     CHECK_HRESULT(hr, CVisioDocument, Path);
  7616.     return BSTR_HELPER_CLASS(ret, TRUE);
  7617. }
  7618.  
  7619.  
  7620. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::FullName()
  7621. {
  7622.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7623.     BSTR ret= 0;
  7624.     CHECK_IP(GetIP(), CVisioDocument, FullName);
  7625.     if (NULL!=GetIP())
  7626.         hr= GetIP()->get_FullName(&ret);
  7627.     CHECK_HRESULT(hr, CVisioDocument, FullName);
  7628.     return BSTR_HELPER_CLASS(ret, TRUE);
  7629. }
  7630.  
  7631.  
  7632. VW_INLINE CVisioMaster FAR CVisioDocument::Drop(IUnknown FAR *ObjectToDrop, short xPos, short yPos)
  7633. {
  7634.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7635.     IVMaster FAR *lpRet= NULL;
  7636.     CHECK_IP(GetIP(), CVisioDocument, Drop);
  7637.     if (NULL!=GetIP())
  7638.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpRet);
  7639.     CHECK_HRESULT(hr, CVisioDocument, Drop);
  7640.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7641. }
  7642.  
  7643.  
  7644. VW_INLINE short CVisioDocument::Index()
  7645. {
  7646.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7647.     short ret= 0;
  7648.     CHECK_IP(GetIP(), CVisioDocument, Index);
  7649.     if (NULL!=GetIP())
  7650.         hr= GetIP()->get_Index(&ret);
  7651.     CHECK_HRESULT(hr, CVisioDocument, Index);
  7652.     return ret;
  7653. }
  7654.  
  7655.  
  7656. VW_INLINE short CVisioDocument::getSaved()
  7657. {
  7658.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7659.     short ret= 0;
  7660.     CHECK_IP(GetIP(), CVisioDocument, getSaved);
  7661.     if (NULL!=GetIP())
  7662.         hr= GetIP()->get_Saved(&ret);
  7663.     CHECK_HRESULT(hr, CVisioDocument, getSaved);
  7664.     return ret;
  7665. }
  7666.  
  7667.  
  7668. VW_INLINE void CVisioDocument::putSaved(VW_CONST short param01)
  7669. {
  7670.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7671.     CHECK_IP(GetIP(), CVisioDocument, putSaved);
  7672.     if (NULL!=GetIP())
  7673.         hr= GetIP()->put_Saved(param01);
  7674.     CHECK_HRESULT(hr, CVisioDocument, putSaved);
  7675. }
  7676.  
  7677.  
  7678. VW_INLINE short CVisioDocument::ReadOnly()
  7679. {
  7680.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7681.     short ret= 0;
  7682.     CHECK_IP(GetIP(), CVisioDocument, ReadOnly);
  7683.     if (NULL!=GetIP())
  7684.         hr= GetIP()->get_ReadOnly(&ret);
  7685.     CHECK_HRESULT(hr, CVisioDocument, ReadOnly);
  7686.     return ret;
  7687. }
  7688.  
  7689.  
  7690. VW_INLINE short CVisioDocument::Save()
  7691. {
  7692.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7693.     short ret= 0;
  7694.     CHECK_IP(GetIP(), CVisioDocument, Save);
  7695.     if (NULL!=GetIP())
  7696.         hr= GetIP()->Save(&ret);
  7697.     CHECK_HRESULT(hr, CVisioDocument, Save);
  7698.     return ret;
  7699. }
  7700.  
  7701.  
  7702. VW_INLINE short CVisioDocument::SaveAs(BSTR_HELPER_CLASS FAR &FileName)
  7703. {
  7704.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7705.     short ret= 0;
  7706.     CHECK_IP(GetIP(), CVisioDocument, SaveAs);
  7707.     if (NULL!=GetIP())
  7708.         hr= GetIP()->SaveAs(FileName, &ret);
  7709.     CHECK_HRESULT(hr, CVisioDocument, SaveAs);
  7710.     return ret;
  7711. }
  7712.  
  7713.  
  7714. VW_INLINE long CVisioDocument::getVersion()
  7715. {
  7716.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7717.     long ret= 0;
  7718.     CHECK_IP(GetIP(), CVisioDocument, getVersion);
  7719.     if (NULL!=GetIP())
  7720.         hr= GetIP()->get_Version(&ret);
  7721.     CHECK_HRESULT(hr, CVisioDocument, getVersion);
  7722.     return ret;
  7723. }
  7724.  
  7725.  
  7726. VW_INLINE void CVisioDocument::putVersion(VW_CONST long param01)
  7727. {
  7728.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7729.     CHECK_IP(GetIP(), CVisioDocument, putVersion);
  7730.     if (NULL!=GetIP())
  7731.         hr= GetIP()->put_Version(param01);
  7732.     CHECK_HRESULT(hr, CVisioDocument, putVersion);
  7733. }
  7734.  
  7735.  
  7736. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getTitle()
  7737. {
  7738.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7739.     BSTR ret= 0;
  7740.     CHECK_IP(GetIP(), CVisioDocument, getTitle);
  7741.     if (NULL!=GetIP())
  7742.         hr= GetIP()->get_Title(&ret);
  7743.     CHECK_HRESULT(hr, CVisioDocument, getTitle);
  7744.     return BSTR_HELPER_CLASS(ret, TRUE);
  7745. }
  7746.  
  7747.  
  7748. VW_INLINE void CVisioDocument::putTitle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7749. {
  7750.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7751.     CHECK_IP(GetIP(), CVisioDocument, putTitle);
  7752.     if (NULL!=GetIP())
  7753.         hr= GetIP()->put_Title(param01);
  7754.     CHECK_HRESULT(hr, CVisioDocument, putTitle);
  7755. }
  7756.  
  7757.  
  7758. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getSubject()
  7759. {
  7760.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7761.     BSTR ret= 0;
  7762.     CHECK_IP(GetIP(), CVisioDocument, getSubject);
  7763.     if (NULL!=GetIP())
  7764.         hr= GetIP()->get_Subject(&ret);
  7765.     CHECK_HRESULT(hr, CVisioDocument, getSubject);
  7766.     return BSTR_HELPER_CLASS(ret, TRUE);
  7767. }
  7768.  
  7769.  
  7770. VW_INLINE void CVisioDocument::putSubject(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7771. {
  7772.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7773.     CHECK_IP(GetIP(), CVisioDocument, putSubject);
  7774.     if (NULL!=GetIP())
  7775.         hr= GetIP()->put_Subject(param01);
  7776.     CHECK_HRESULT(hr, CVisioDocument, putSubject);
  7777. }
  7778.  
  7779.  
  7780. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getCreator()
  7781. {
  7782.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7783.     BSTR ret= 0;
  7784.     CHECK_IP(GetIP(), CVisioDocument, getCreator);
  7785.     if (NULL!=GetIP())
  7786.         hr= GetIP()->get_Creator(&ret);
  7787.     CHECK_HRESULT(hr, CVisioDocument, getCreator);
  7788.     return BSTR_HELPER_CLASS(ret, TRUE);
  7789. }
  7790.  
  7791.  
  7792. VW_INLINE void CVisioDocument::putCreator(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7793. {
  7794.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7795.     CHECK_IP(GetIP(), CVisioDocument, putCreator);
  7796.     if (NULL!=GetIP())
  7797.         hr= GetIP()->put_Creator(param01);
  7798.     CHECK_HRESULT(hr, CVisioDocument, putCreator);
  7799. }
  7800.  
  7801.  
  7802. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getKeywords()
  7803. {
  7804.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7805.     BSTR ret= 0;
  7806.     CHECK_IP(GetIP(), CVisioDocument, getKeywords);
  7807.     if (NULL!=GetIP())
  7808.         hr= GetIP()->get_Keywords(&ret);
  7809.     CHECK_HRESULT(hr, CVisioDocument, getKeywords);
  7810.     return BSTR_HELPER_CLASS(ret, TRUE);
  7811. }
  7812.  
  7813.  
  7814. VW_INLINE void CVisioDocument::putKeywords(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7815. {
  7816.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7817.     CHECK_IP(GetIP(), CVisioDocument, putKeywords);
  7818.     if (NULL!=GetIP())
  7819.         hr= GetIP()->put_Keywords(param01);
  7820.     CHECK_HRESULT(hr, CVisioDocument, putKeywords);
  7821. }
  7822.  
  7823.  
  7824. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getDescription()
  7825. {
  7826.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7827.     BSTR ret= 0;
  7828.     CHECK_IP(GetIP(), CVisioDocument, getDescription);
  7829.     if (NULL!=GetIP())
  7830.         hr= GetIP()->get_Description(&ret);
  7831.     CHECK_HRESULT(hr, CVisioDocument, getDescription);
  7832.     return BSTR_HELPER_CLASS(ret, TRUE);
  7833. }
  7834.  
  7835.  
  7836. VW_INLINE void CVisioDocument::putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7837. {
  7838.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7839.     CHECK_IP(GetIP(), CVisioDocument, putDescription);
  7840.     if (NULL!=GetIP())
  7841.         hr= GetIP()->put_Description(param01);
  7842.     CHECK_HRESULT(hr, CVisioDocument, putDescription);
  7843. }
  7844.  
  7845.  
  7846. VW_INLINE void CVisioDocument::Print()
  7847. {
  7848.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7849.     CHECK_IP(GetIP(), CVisioDocument, Print);
  7850.     if (NULL!=GetIP())
  7851.         hr= GetIP()->Print();
  7852.     CHECK_HRESULT(hr, CVisioDocument, Print);
  7853. }
  7854.  
  7855.  
  7856. VW_INLINE void CVisioDocument::Close()
  7857. {
  7858.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7859.     CHECK_IP(GetIP(), CVisioDocument, Close);
  7860.     if (NULL!=GetIP())
  7861.         hr= GetIP()->Close();
  7862.     CHECK_HRESULT(hr, CVisioDocument, Close);
  7863. }
  7864.  
  7865.  
  7866. VW_INLINE CVisioUIObject FAR CVisioDocument::CustomMenus()
  7867. {
  7868.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7869.     IVUIObject FAR *lpRet= NULL;
  7870.     CHECK_IP(GetIP(), CVisioDocument, CustomMenus);
  7871.     if (NULL!=GetIP())
  7872.         hr= GetIP()->get_CustomMenus(&lpRet);
  7873.     CHECK_HRESULT(hr, CVisioDocument, CustomMenus);
  7874.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7875. }
  7876.  
  7877.  
  7878. VW_INLINE void CVisioDocument::SetCustomMenus(CVisioUIObject FAR &MenusObject)
  7879. {
  7880.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7881.     CHECK_IP(GetIP(), CVisioDocument, SetCustomMenus);
  7882.     if (NULL!=GetIP())
  7883.         hr= GetIP()->SetCustomMenus(MenusObject);
  7884.     CHECK_HRESULT(hr, CVisioDocument, SetCustomMenus);
  7885. }
  7886.  
  7887.  
  7888. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getCustomMenusFile()
  7889. {
  7890.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7891.     BSTR ret= 0;
  7892.     CHECK_IP(GetIP(), CVisioDocument, getCustomMenusFile);
  7893.     if (NULL!=GetIP())
  7894.         hr= GetIP()->get_CustomMenusFile(&ret);
  7895.     CHECK_HRESULT(hr, CVisioDocument, getCustomMenusFile);
  7896.     return BSTR_HELPER_CLASS(ret, TRUE);
  7897. }
  7898.  
  7899.  
  7900. VW_INLINE void CVisioDocument::putCustomMenusFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7901. {
  7902.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7903.     CHECK_IP(GetIP(), CVisioDocument, putCustomMenusFile);
  7904.     if (NULL!=GetIP())
  7905.         hr= GetIP()->put_CustomMenusFile(param01);
  7906.     CHECK_HRESULT(hr, CVisioDocument, putCustomMenusFile);
  7907. }
  7908.  
  7909.  
  7910. VW_INLINE void CVisioDocument::ClearCustomMenus()
  7911. {
  7912.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7913.     CHECK_IP(GetIP(), CVisioDocument, ClearCustomMenus);
  7914.     if (NULL!=GetIP())
  7915.         hr= GetIP()->ClearCustomMenus();
  7916.     CHECK_HRESULT(hr, CVisioDocument, ClearCustomMenus);
  7917. }
  7918.  
  7919.  
  7920. VW_INLINE CVisioUIObject FAR CVisioDocument::CustomToolbars()
  7921. {
  7922.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7923.     IVUIObject FAR *lpRet= NULL;
  7924.     CHECK_IP(GetIP(), CVisioDocument, CustomToolbars);
  7925.     if (NULL!=GetIP())
  7926.         hr= GetIP()->get_CustomToolbars(&lpRet);
  7927.     CHECK_HRESULT(hr, CVisioDocument, CustomToolbars);
  7928.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7929. }
  7930.  
  7931.  
  7932. VW_INLINE void CVisioDocument::SetCustomToolbars(CVisioUIObject FAR &ToolbarsObject)
  7933. {
  7934.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7935.     CHECK_IP(GetIP(), CVisioDocument, SetCustomToolbars);
  7936.     if (NULL!=GetIP())
  7937.         hr= GetIP()->SetCustomToolbars(ToolbarsObject);
  7938.     CHECK_HRESULT(hr, CVisioDocument, SetCustomToolbars);
  7939. }
  7940.  
  7941.  
  7942. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getCustomToolbarsFile()
  7943. {
  7944.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7945.     BSTR ret= 0;
  7946.     CHECK_IP(GetIP(), CVisioDocument, getCustomToolbarsFile);
  7947.     if (NULL!=GetIP())
  7948.         hr= GetIP()->get_CustomToolbarsFile(&ret);
  7949.     CHECK_HRESULT(hr, CVisioDocument, getCustomToolbarsFile);
  7950.     return BSTR_HELPER_CLASS(ret, TRUE);
  7951. }
  7952.  
  7953.  
  7954. VW_INLINE void CVisioDocument::putCustomToolbarsFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  7955. {
  7956.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7957.     CHECK_IP(GetIP(), CVisioDocument, putCustomToolbarsFile);
  7958.     if (NULL!=GetIP())
  7959.         hr= GetIP()->put_CustomToolbarsFile(param01);
  7960.     CHECK_HRESULT(hr, CVisioDocument, putCustomToolbarsFile);
  7961. }
  7962.  
  7963.  
  7964. VW_INLINE void CVisioDocument::ClearCustomToolbars()
  7965. {
  7966.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7967.     CHECK_IP(GetIP(), CVisioDocument, ClearCustomToolbars);
  7968.     if (NULL!=GetIP())
  7969.         hr= GetIP()->ClearCustomToolbars();
  7970.     CHECK_HRESULT(hr, CVisioDocument, ClearCustomToolbars);
  7971. }
  7972.  
  7973.  
  7974. VW_INLINE CVisioFonts FAR CVisioDocument::Fonts()
  7975. {
  7976.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7977.     IVFonts FAR *lpRet= NULL;
  7978.     CHECK_IP(GetIP(), CVisioDocument, Fonts);
  7979.     if (NULL!=GetIP())
  7980.         hr= GetIP()->get_Fonts(&lpRet);
  7981.     CHECK_HRESULT(hr, CVisioDocument, Fonts);
  7982.     return CVisioFonts(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7983. }
  7984.  
  7985.  
  7986. VW_INLINE CVisioColors FAR CVisioDocument::Colors()
  7987. {
  7988.     HRESULT hr= VW_INTERFACE_NOT_SET;
  7989.     IVColors FAR *lpRet= NULL;
  7990.     CHECK_IP(GetIP(), CVisioDocument, Colors);
  7991.     if (NULL!=GetIP())
  7992.         hr= GetIP()->get_Colors(&lpRet);
  7993.     CHECK_HRESULT(hr, CVisioDocument, Colors);
  7994.     return CVisioColors(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  7995. }
  7996.  
  7997.  
  7998. VW_INLINE CVisioEventList FAR CVisioDocument::EventList()
  7999. {
  8000.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8001.     IVEventList FAR *lpRet= NULL;
  8002.     CHECK_IP(GetIP(), CVisioDocument, EventList);
  8003.     if (NULL!=GetIP())
  8004.         hr= GetIP()->get_EventList(&lpRet);
  8005.     CHECK_HRESULT(hr, CVisioDocument, EventList);
  8006.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8007. }
  8008.  
  8009.  
  8010. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::Template()
  8011. {
  8012.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8013.     BSTR ret= 0;
  8014.     CHECK_IP(GetIP(), CVisioDocument, Template);
  8015.     if (NULL!=GetIP())
  8016.         hr= GetIP()->get_Template(&ret);
  8017.     CHECK_HRESULT(hr, CVisioDocument, Template);
  8018.     return BSTR_HELPER_CLASS(ret, TRUE);
  8019. }
  8020.  
  8021.  
  8022. VW_INLINE void CVisioDocument::SaveAsEx(BSTR_HELPER_CLASS FAR &FileName, short SaveFlags)
  8023. {
  8024.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8025.     CHECK_IP(GetIP(), CVisioDocument, SaveAsEx);
  8026.     if (NULL!=GetIP())
  8027.         hr= GetIP()->SaveAsEx(FileName, SaveFlags);
  8028.     CHECK_HRESULT(hr, CVisioDocument, SaveAsEx);
  8029. }
  8030.  
  8031.  
  8032. VW_INLINE short CVisioDocument::getSavePreviewMode()
  8033. {
  8034.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8035.     short ret= 0;
  8036.     CHECK_IP(GetIP(), CVisioDocument, getSavePreviewMode);
  8037.     if (NULL!=GetIP())
  8038.         hr= GetIP()->get_SavePreviewMode(&ret);
  8039.     CHECK_HRESULT(hr, CVisioDocument, getSavePreviewMode);
  8040.     return ret;
  8041. }
  8042.  
  8043.  
  8044. VW_INLINE void CVisioDocument::putSavePreviewMode(VW_CONST short param01)
  8045. {
  8046.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8047.     CHECK_IP(GetIP(), CVisioDocument, putSavePreviewMode);
  8048.     if (NULL!=GetIP())
  8049.         hr= GetIP()->put_SavePreviewMode(param01);
  8050.     CHECK_HRESULT(hr, CVisioDocument, putSavePreviewMode);
  8051. }
  8052.  
  8053.  
  8054. VW_INLINE void CVisioDocument::GetIcon(short ID, BSTR_HELPER_CLASS FAR &FileName)
  8055. {
  8056.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8057.     CHECK_IP(GetIP(), CVisioDocument, GetIcon);
  8058.     if (NULL!=GetIP())
  8059.         hr= GetIP()->GetIcon(ID, FileName);
  8060.     CHECK_HRESULT(hr, CVisioDocument, GetIcon);
  8061. }
  8062.  
  8063.  
  8064. VW_INLINE void CVisioDocument::SetIcon(short ID, short Index, BSTR_HELPER_CLASS FAR &FileName)
  8065. {
  8066.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8067.     CHECK_IP(GetIP(), CVisioDocument, SetIcon);
  8068.     if (NULL!=GetIP())
  8069.         hr= GetIP()->SetIcon(ID, Index, FileName);
  8070.     CHECK_HRESULT(hr, CVisioDocument, SetIcon);
  8071. }
  8072.  
  8073.  
  8074. VW_INLINE double CVisioDocument::getLeftMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  8075. {
  8076.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8077.     double ret= 0;
  8078.     CHECK_IP(GetIP(), CVisioDocument, getLeftMargin);
  8079.     if (NULL!=GetIP())
  8080.         hr= GetIP()->get_LeftMargin(UnitsNameOrCode, &ret);
  8081.     CHECK_HRESULT(hr, CVisioDocument, getLeftMargin);
  8082.     return ret;
  8083. }
  8084.  
  8085.  
  8086. VW_INLINE void CVisioDocument::putLeftMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8087. {
  8088.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8089.     CHECK_IP(GetIP(), CVisioDocument, putLeftMargin);
  8090.     if (NULL!=GetIP())
  8091.         hr= GetIP()->put_LeftMargin(UnitsNameOrCode, param02);
  8092.     CHECK_HRESULT(hr, CVisioDocument, putLeftMargin);
  8093. }
  8094.  
  8095.  
  8096. VW_INLINE double CVisioDocument::getRightMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  8097. {
  8098.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8099.     double ret= 0;
  8100.     CHECK_IP(GetIP(), CVisioDocument, getRightMargin);
  8101.     if (NULL!=GetIP())
  8102.         hr= GetIP()->get_RightMargin(UnitsNameOrCode, &ret);
  8103.     CHECK_HRESULT(hr, CVisioDocument, getRightMargin);
  8104.     return ret;
  8105. }
  8106.  
  8107.  
  8108. VW_INLINE void CVisioDocument::putRightMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8109. {
  8110.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8111.     CHECK_IP(GetIP(), CVisioDocument, putRightMargin);
  8112.     if (NULL!=GetIP())
  8113.         hr= GetIP()->put_RightMargin(UnitsNameOrCode, param02);
  8114.     CHECK_HRESULT(hr, CVisioDocument, putRightMargin);
  8115. }
  8116.  
  8117.  
  8118. VW_INLINE double CVisioDocument::getTopMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  8119. {
  8120.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8121.     double ret= 0;
  8122.     CHECK_IP(GetIP(), CVisioDocument, getTopMargin);
  8123.     if (NULL!=GetIP())
  8124.         hr= GetIP()->get_TopMargin(UnitsNameOrCode, &ret);
  8125.     CHECK_HRESULT(hr, CVisioDocument, getTopMargin);
  8126.     return ret;
  8127. }
  8128.  
  8129.  
  8130. VW_INLINE void CVisioDocument::putTopMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8131. {
  8132.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8133.     CHECK_IP(GetIP(), CVisioDocument, putTopMargin);
  8134.     if (NULL!=GetIP())
  8135.         hr= GetIP()->put_TopMargin(UnitsNameOrCode, param02);
  8136.     CHECK_HRESULT(hr, CVisioDocument, putTopMargin);
  8137. }
  8138.  
  8139.  
  8140. VW_INLINE double CVisioDocument::getBottomMargin(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  8141. {
  8142.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8143.     double ret= 0;
  8144.     CHECK_IP(GetIP(), CVisioDocument, getBottomMargin);
  8145.     if (NULL!=GetIP())
  8146.         hr= GetIP()->get_BottomMargin(UnitsNameOrCode, &ret);
  8147.     CHECK_HRESULT(hr, CVisioDocument, getBottomMargin);
  8148.     return ret;
  8149. }
  8150.  
  8151.  
  8152. VW_INLINE void CVisioDocument::putBottomMargin(VW_CONST VARIANT_HELPER_CLASS FAR &UnitsNameOrCode, VW_CONST double param02)
  8153. {
  8154.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8155.     CHECK_IP(GetIP(), CVisioDocument, putBottomMargin);
  8156.     if (NULL!=GetIP())
  8157.         hr= GetIP()->put_BottomMargin(UnitsNameOrCode, param02);
  8158.     CHECK_HRESULT(hr, CVisioDocument, putBottomMargin);
  8159. }
  8160.  
  8161.  
  8162. VW_INLINE short CVisioDocument::getPrintLandscape()
  8163. {
  8164.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8165.     short ret= 0;
  8166.     CHECK_IP(GetIP(), CVisioDocument, getPrintLandscape);
  8167.     if (NULL!=GetIP())
  8168.         hr= GetIP()->get_PrintLandscape(&ret);
  8169.     CHECK_HRESULT(hr, CVisioDocument, getPrintLandscape);
  8170.     return ret;
  8171. }
  8172.  
  8173.  
  8174. VW_INLINE void CVisioDocument::putPrintLandscape(VW_CONST short param01)
  8175. {
  8176.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8177.     CHECK_IP(GetIP(), CVisioDocument, putPrintLandscape);
  8178.     if (NULL!=GetIP())
  8179.         hr= GetIP()->put_PrintLandscape(param01);
  8180.     CHECK_HRESULT(hr, CVisioDocument, putPrintLandscape);
  8181. }
  8182.  
  8183.  
  8184. VW_INLINE short CVisioDocument::getPrintCenteredH()
  8185. {
  8186.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8187.     short ret= 0;
  8188.     CHECK_IP(GetIP(), CVisioDocument, getPrintCenteredH);
  8189.     if (NULL!=GetIP())
  8190.         hr= GetIP()->get_PrintCenteredH(&ret);
  8191.     CHECK_HRESULT(hr, CVisioDocument, getPrintCenteredH);
  8192.     return ret;
  8193. }
  8194.  
  8195.  
  8196. VW_INLINE void CVisioDocument::putPrintCenteredH(VW_CONST short param01)
  8197. {
  8198.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8199.     CHECK_IP(GetIP(), CVisioDocument, putPrintCenteredH);
  8200.     if (NULL!=GetIP())
  8201.         hr= GetIP()->put_PrintCenteredH(param01);
  8202.     CHECK_HRESULT(hr, CVisioDocument, putPrintCenteredH);
  8203. }
  8204.  
  8205.  
  8206. VW_INLINE short CVisioDocument::getPrintCenteredV()
  8207. {
  8208.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8209.     short ret= 0;
  8210.     CHECK_IP(GetIP(), CVisioDocument, getPrintCenteredV);
  8211.     if (NULL!=GetIP())
  8212.         hr= GetIP()->get_PrintCenteredV(&ret);
  8213.     CHECK_HRESULT(hr, CVisioDocument, getPrintCenteredV);
  8214.     return ret;
  8215. }
  8216.  
  8217.  
  8218. VW_INLINE void CVisioDocument::putPrintCenteredV(VW_CONST short param01)
  8219. {
  8220.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8221.     CHECK_IP(GetIP(), CVisioDocument, putPrintCenteredV);
  8222.     if (NULL!=GetIP())
  8223.         hr= GetIP()->put_PrintCenteredV(param01);
  8224.     CHECK_HRESULT(hr, CVisioDocument, putPrintCenteredV);
  8225. }
  8226.  
  8227.  
  8228. VW_INLINE double CVisioDocument::getPrintScale()
  8229. {
  8230.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8231.     double ret= 0;
  8232.     CHECK_IP(GetIP(), CVisioDocument, getPrintScale);
  8233.     if (NULL!=GetIP())
  8234.         hr= GetIP()->get_PrintScale(&ret);
  8235.     CHECK_HRESULT(hr, CVisioDocument, getPrintScale);
  8236.     return ret;
  8237. }
  8238.  
  8239.  
  8240. VW_INLINE void CVisioDocument::putPrintScale(VW_CONST double param01)
  8241. {
  8242.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8243.     CHECK_IP(GetIP(), CVisioDocument, putPrintScale);
  8244.     if (NULL!=GetIP())
  8245.         hr= GetIP()->put_PrintScale(param01);
  8246.     CHECK_HRESULT(hr, CVisioDocument, putPrintScale);
  8247. }
  8248.  
  8249.  
  8250. VW_INLINE short CVisioDocument::getPrintFitOnPages()
  8251. {
  8252.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8253.     short ret= 0;
  8254.     CHECK_IP(GetIP(), CVisioDocument, getPrintFitOnPages);
  8255.     if (NULL!=GetIP())
  8256.         hr= GetIP()->get_PrintFitOnPages(&ret);
  8257.     CHECK_HRESULT(hr, CVisioDocument, getPrintFitOnPages);
  8258.     return ret;
  8259. }
  8260.  
  8261.  
  8262. VW_INLINE void CVisioDocument::putPrintFitOnPages(VW_CONST short param01)
  8263. {
  8264.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8265.     CHECK_IP(GetIP(), CVisioDocument, putPrintFitOnPages);
  8266.     if (NULL!=GetIP())
  8267.         hr= GetIP()->put_PrintFitOnPages(param01);
  8268.     CHECK_HRESULT(hr, CVisioDocument, putPrintFitOnPages);
  8269. }
  8270.  
  8271.  
  8272. VW_INLINE short CVisioDocument::getPrintPagesAcross()
  8273. {
  8274.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8275.     short ret= 0;
  8276.     CHECK_IP(GetIP(), CVisioDocument, getPrintPagesAcross);
  8277.     if (NULL!=GetIP())
  8278.         hr= GetIP()->get_PrintPagesAcross(&ret);
  8279.     CHECK_HRESULT(hr, CVisioDocument, getPrintPagesAcross);
  8280.     return ret;
  8281. }
  8282.  
  8283.  
  8284. VW_INLINE void CVisioDocument::putPrintPagesAcross(VW_CONST short param01)
  8285. {
  8286.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8287.     CHECK_IP(GetIP(), CVisioDocument, putPrintPagesAcross);
  8288.     if (NULL!=GetIP())
  8289.         hr= GetIP()->put_PrintPagesAcross(param01);
  8290.     CHECK_HRESULT(hr, CVisioDocument, putPrintPagesAcross);
  8291. }
  8292.  
  8293.  
  8294. VW_INLINE short CVisioDocument::getPrintPagesDown()
  8295. {
  8296.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8297.     short ret= 0;
  8298.     CHECK_IP(GetIP(), CVisioDocument, getPrintPagesDown);
  8299.     if (NULL!=GetIP())
  8300.         hr= GetIP()->get_PrintPagesDown(&ret);
  8301.     CHECK_HRESULT(hr, CVisioDocument, getPrintPagesDown);
  8302.     return ret;
  8303. }
  8304.  
  8305.  
  8306. VW_INLINE void CVisioDocument::putPrintPagesDown(VW_CONST short param01)
  8307. {
  8308.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8309.     CHECK_IP(GetIP(), CVisioDocument, putPrintPagesDown);
  8310.     if (NULL!=GetIP())
  8311.         hr= GetIP()->put_PrintPagesDown(param01);
  8312.     CHECK_HRESULT(hr, CVisioDocument, putPrintPagesDown);
  8313. }
  8314.  
  8315.  
  8316. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getDefaultStyle()
  8317. {
  8318.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8319.     BSTR ret= 0;
  8320.     CHECK_IP(GetIP(), CVisioDocument, getDefaultStyle);
  8321.     if (NULL!=GetIP())
  8322.         hr= GetIP()->get_DefaultStyle(&ret);
  8323.     CHECK_HRESULT(hr, CVisioDocument, getDefaultStyle);
  8324.     return BSTR_HELPER_CLASS(ret, TRUE);
  8325. }
  8326.  
  8327.  
  8328. VW_INLINE void CVisioDocument::putDefaultStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8329. {
  8330.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8331.     CHECK_IP(GetIP(), CVisioDocument, putDefaultStyle);
  8332.     if (NULL!=GetIP())
  8333.         hr= GetIP()->put_DefaultStyle(param01);
  8334.     CHECK_HRESULT(hr, CVisioDocument, putDefaultStyle);
  8335. }
  8336.  
  8337.  
  8338. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getDefaultLineStyle()
  8339. {
  8340.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8341.     BSTR ret= 0;
  8342.     CHECK_IP(GetIP(), CVisioDocument, getDefaultLineStyle);
  8343.     if (NULL!=GetIP())
  8344.         hr= GetIP()->get_DefaultLineStyle(&ret);
  8345.     CHECK_HRESULT(hr, CVisioDocument, getDefaultLineStyle);
  8346.     return BSTR_HELPER_CLASS(ret, TRUE);
  8347. }
  8348.  
  8349.  
  8350. VW_INLINE void CVisioDocument::putDefaultLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8351. {
  8352.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8353.     CHECK_IP(GetIP(), CVisioDocument, putDefaultLineStyle);
  8354.     if (NULL!=GetIP())
  8355.         hr= GetIP()->put_DefaultLineStyle(param01);
  8356.     CHECK_HRESULT(hr, CVisioDocument, putDefaultLineStyle);
  8357. }
  8358.  
  8359.  
  8360. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getDefaultFillStyle()
  8361. {
  8362.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8363.     BSTR ret= 0;
  8364.     CHECK_IP(GetIP(), CVisioDocument, getDefaultFillStyle);
  8365.     if (NULL!=GetIP())
  8366.         hr= GetIP()->get_DefaultFillStyle(&ret);
  8367.     CHECK_HRESULT(hr, CVisioDocument, getDefaultFillStyle);
  8368.     return BSTR_HELPER_CLASS(ret, TRUE);
  8369. }
  8370.  
  8371.  
  8372. VW_INLINE void CVisioDocument::putDefaultFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8373. {
  8374.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8375.     CHECK_IP(GetIP(), CVisioDocument, putDefaultFillStyle);
  8376.     if (NULL!=GetIP())
  8377.         hr= GetIP()->put_DefaultFillStyle(param01);
  8378.     CHECK_HRESULT(hr, CVisioDocument, putDefaultFillStyle);
  8379. }
  8380.  
  8381.  
  8382. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getDefaultTextStyle()
  8383. {
  8384.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8385.     BSTR ret= 0;
  8386.     CHECK_IP(GetIP(), CVisioDocument, getDefaultTextStyle);
  8387.     if (NULL!=GetIP())
  8388.         hr= GetIP()->get_DefaultTextStyle(&ret);
  8389.     CHECK_HRESULT(hr, CVisioDocument, getDefaultTextStyle);
  8390.     return BSTR_HELPER_CLASS(ret, TRUE);
  8391. }
  8392.  
  8393.  
  8394. VW_INLINE void CVisioDocument::putDefaultTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8395. {
  8396.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8397.     CHECK_IP(GetIP(), CVisioDocument, putDefaultTextStyle);
  8398.     if (NULL!=GetIP())
  8399.         hr= GetIP()->put_DefaultTextStyle(param01);
  8400.     CHECK_HRESULT(hr, CVisioDocument, putDefaultTextStyle);
  8401. }
  8402.  
  8403.  
  8404. VW_INLINE short CVisioDocument::PersistsEvents()
  8405. {
  8406.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8407.     short ret= 0;
  8408.     CHECK_IP(GetIP(), CVisioDocument, PersistsEvents);
  8409.     if (NULL!=GetIP())
  8410.         hr= GetIP()->get_PersistsEvents(&ret);
  8411.     CHECK_HRESULT(hr, CVisioDocument, PersistsEvents);
  8412.     return ret;
  8413. }
  8414.  
  8415.  
  8416. VW_INLINE CVisioWindow FAR CVisioDocument::OpenStencilWindow()
  8417. {
  8418.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8419.     IVWindow FAR *lpRet= NULL;
  8420.     CHECK_IP(GetIP(), CVisioDocument, OpenStencilWindow);
  8421.     if (NULL!=GetIP())
  8422.         hr= GetIP()->OpenStencilWindow(&lpRet);
  8423.     CHECK_HRESULT(hr, CVisioDocument, OpenStencilWindow);
  8424.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8425. }
  8426.  
  8427.  
  8428. VW_INLINE void CVisioDocument::ParseLine(BSTR_HELPER_CLASS FAR &Line)
  8429. {
  8430.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8431.     CHECK_IP(GetIP(), CVisioDocument, ParseLine);
  8432.     if (NULL!=GetIP())
  8433.         hr= GetIP()->ParseLine(Line);
  8434.     CHECK_HRESULT(hr, CVisioDocument, ParseLine);
  8435. }
  8436.  
  8437.  
  8438. VW_INLINE void CVisioDocument::ExecuteLine(BSTR_HELPER_CLASS FAR &Line)
  8439. {
  8440.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8441.     CHECK_IP(GetIP(), CVisioDocument, ExecuteLine);
  8442.     if (NULL!=GetIP())
  8443.         hr= GetIP()->ExecuteLine(Line);
  8444.     CHECK_HRESULT(hr, CVisioDocument, ExecuteLine);
  8445. }
  8446.  
  8447.  
  8448. VW_INLINE IDispatch FAR *CVisioDocument::VBProject()
  8449. {
  8450.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8451.     IDispatch FAR *lpRet= NULL;
  8452.     CHECK_IP(GetIP(), CVisioDocument, VBProject);
  8453.     if (NULL!=GetIP())
  8454.         hr= GetIP()->get_VBProject(&lpRet);
  8455.     CHECK_HRESULT(hr, CVisioDocument, VBProject);
  8456.     return lpRet;
  8457. }
  8458.  
  8459.  
  8460. VW_INLINE double CVisioDocument::PaperWidth(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  8461. {
  8462.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8463.     double ret= 0;
  8464.     CHECK_IP(GetIP(), CVisioDocument, PaperWidth);
  8465.     if (NULL!=GetIP())
  8466.         hr= GetIP()->get_PaperWidth(UnitsNameOrCode, &ret);
  8467.     CHECK_HRESULT(hr, CVisioDocument, PaperWidth);
  8468.     return ret;
  8469. }
  8470.  
  8471.  
  8472. VW_INLINE double CVisioDocument::PaperHeight(VARIANT_HELPER_CLASS FAR &UnitsNameOrCode)
  8473. {
  8474.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8475.     double ret= 0;
  8476.     CHECK_IP(GetIP(), CVisioDocument, PaperHeight);
  8477.     if (NULL!=GetIP())
  8478.         hr= GetIP()->get_PaperHeight(UnitsNameOrCode, &ret);
  8479.     CHECK_HRESULT(hr, CVisioDocument, PaperHeight);
  8480.     return ret;
  8481. }
  8482.  
  8483.  
  8484. VW_INLINE short CVisioDocument::getPaperSize()
  8485. {
  8486.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8487.     short ret= 0;
  8488.     CHECK_IP(GetIP(), CVisioDocument, getPaperSize);
  8489.     if (NULL!=GetIP())
  8490.         hr= GetIP()->get_PaperSize(&ret);
  8491.     CHECK_HRESULT(hr, CVisioDocument, getPaperSize);
  8492.     return ret;
  8493. }
  8494.  
  8495.  
  8496. VW_INLINE void CVisioDocument::putPaperSize(VW_CONST short param01)
  8497. {
  8498.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8499.     CHECK_IP(GetIP(), CVisioDocument, putPaperSize);
  8500.     if (NULL!=GetIP())
  8501.         hr= GetIP()->put_PaperSize(param01);
  8502.     CHECK_HRESULT(hr, CVisioDocument, putPaperSize);
  8503. }
  8504.  
  8505.  
  8506. VW_INLINE void CVisioDocument::FollowHyperlink45(BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &Location)
  8507. {
  8508.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8509.     CHECK_IP(GetIP(), CVisioDocument, FollowHyperlink45);
  8510.     if (NULL!=GetIP())
  8511.         hr= GetIP()->FollowHyperlink45(Target, Location);
  8512.     CHECK_HRESULT(hr, CVisioDocument, FollowHyperlink45);
  8513. }
  8514.  
  8515.  
  8516. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::CodeName()
  8517. {
  8518.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8519.     BSTR ret= 0;
  8520.     CHECK_IP(GetIP(), CVisioDocument, CodeName);
  8521.     if (NULL!=GetIP())
  8522.         hr= GetIP()->get_CodeName(&ret);
  8523.     CHECK_HRESULT(hr, CVisioDocument, CodeName);
  8524.     return BSTR_HELPER_CLASS(ret, TRUE);
  8525. }
  8526.  
  8527.  
  8528. VW_INLINE short CVisioDocument::getMode()
  8529. {
  8530.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8531.     short ret= 0;
  8532.     CHECK_IP(GetIP(), CVisioDocument, getMode);
  8533.     if (NULL!=GetIP())
  8534.         hr= GetIP()->get_Mode(&ret);
  8535.     CHECK_HRESULT(hr, CVisioDocument, getMode);
  8536.     return ret;
  8537. }
  8538.  
  8539.  
  8540. VW_INLINE void CVisioDocument::putMode(VW_CONST short param01)
  8541. {
  8542.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8543.     CHECK_IP(GetIP(), CVisioDocument, putMode);
  8544.     if (NULL!=GetIP())
  8545.         hr= GetIP()->put_Mode(param01);
  8546.     CHECK_HRESULT(hr, CVisioDocument, putMode);
  8547. }
  8548.  
  8549.  
  8550. VW_INLINE CVisioOLEObjects FAR CVisioDocument::OLEObjects()
  8551. {
  8552.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8553.     IVOLEObjects FAR *lpRet= NULL;
  8554.     CHECK_IP(GetIP(), CVisioDocument, OLEObjects);
  8555.     if (NULL!=GetIP())
  8556.         hr= GetIP()->get_OLEObjects(&lpRet);
  8557.     CHECK_HRESULT(hr, CVisioDocument, OLEObjects);
  8558.     return CVisioOLEObjects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8559. }
  8560.  
  8561.  
  8562. VW_INLINE void CVisioDocument::FollowHyperlink(BSTR_HELPER_CLASS FAR &Address, BSTR_HELPER_CLASS FAR &SubAddress, VARIANT_HELPER_CLASS FAR &ExtraInfo, VARIANT_HELPER_CLASS FAR &Frame, VARIANT_HELPER_CLASS FAR &NewWindow, VARIANT_HELPER_CLASS FAR &res1, VARIANT_HELPER_CLASS FAR &res2, VARIANT_HELPER_CLASS FAR &res3)
  8563. {
  8564.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8565.     CHECK_IP(GetIP(), CVisioDocument, FollowHyperlink);
  8566.     if (NULL!=GetIP())
  8567.         hr= GetIP()->FollowHyperlink(Address, SubAddress, ExtraInfo, Frame, NewWindow, res1, res2, res3);
  8568.     CHECK_HRESULT(hr, CVisioDocument, FollowHyperlink);
  8569. }
  8570.  
  8571.  
  8572. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getManager()
  8573. {
  8574.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8575.     BSTR ret= 0;
  8576.     CHECK_IP(GetIP(), CVisioDocument, getManager);
  8577.     if (NULL!=GetIP())
  8578.         hr= GetIP()->get_Manager(&ret);
  8579.     CHECK_HRESULT(hr, CVisioDocument, getManager);
  8580.     return BSTR_HELPER_CLASS(ret, TRUE);
  8581. }
  8582.  
  8583.  
  8584. VW_INLINE void CVisioDocument::putManager(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8585. {
  8586.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8587.     CHECK_IP(GetIP(), CVisioDocument, putManager);
  8588.     if (NULL!=GetIP())
  8589.         hr= GetIP()->put_Manager(param01);
  8590.     CHECK_HRESULT(hr, CVisioDocument, putManager);
  8591. }
  8592.  
  8593.  
  8594. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getCompany()
  8595. {
  8596.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8597.     BSTR ret= 0;
  8598.     CHECK_IP(GetIP(), CVisioDocument, getCompany);
  8599.     if (NULL!=GetIP())
  8600.         hr= GetIP()->get_Company(&ret);
  8601.     CHECK_HRESULT(hr, CVisioDocument, getCompany);
  8602.     return BSTR_HELPER_CLASS(ret, TRUE);
  8603. }
  8604.  
  8605.  
  8606. VW_INLINE void CVisioDocument::putCompany(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8607. {
  8608.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8609.     CHECK_IP(GetIP(), CVisioDocument, putCompany);
  8610.     if (NULL!=GetIP())
  8611.         hr= GetIP()->put_Company(param01);
  8612.     CHECK_HRESULT(hr, CVisioDocument, putCompany);
  8613. }
  8614.  
  8615.  
  8616. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getCategory()
  8617. {
  8618.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8619.     BSTR ret= 0;
  8620.     CHECK_IP(GetIP(), CVisioDocument, getCategory);
  8621.     if (NULL!=GetIP())
  8622.         hr= GetIP()->get_Category(&ret);
  8623.     CHECK_HRESULT(hr, CVisioDocument, getCategory);
  8624.     return BSTR_HELPER_CLASS(ret, TRUE);
  8625. }
  8626.  
  8627.  
  8628. VW_INLINE void CVisioDocument::putCategory(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8629. {
  8630.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8631.     CHECK_IP(GetIP(), CVisioDocument, putCategory);
  8632.     if (NULL!=GetIP())
  8633.         hr= GetIP()->put_Category(param01);
  8634.     CHECK_HRESULT(hr, CVisioDocument, putCategory);
  8635. }
  8636.  
  8637.  
  8638. VW_INLINE BSTR_HELPER_CLASS FAR CVisioDocument::getHyperlinkBase()
  8639. {
  8640.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8641.     BSTR ret= 0;
  8642.     CHECK_IP(GetIP(), CVisioDocument, getHyperlinkBase);
  8643.     if (NULL!=GetIP())
  8644.         hr= GetIP()->get_HyperlinkBase(&ret);
  8645.     CHECK_HRESULT(hr, CVisioDocument, getHyperlinkBase);
  8646.     return BSTR_HELPER_CLASS(ret, TRUE);
  8647. }
  8648.  
  8649.  
  8650. VW_INLINE void CVisioDocument::putHyperlinkBase(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8651. {
  8652.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8653.     CHECK_IP(GetIP(), CVisioDocument, putHyperlinkBase);
  8654.     if (NULL!=GetIP())
  8655.         hr= GetIP()->put_HyperlinkBase(param01);
  8656.     CHECK_HRESULT(hr, CVisioDocument, putHyperlinkBase);
  8657. }
  8658.  
  8659.  
  8660.  
  8661. //  ***************************************************************************
  8662. //  Implementation of class CVisioDocuments
  8663.  
  8664. VW_INLINE CVisioDocument FAR CVisioDocuments::Add(BSTR_HELPER_CLASS FAR &FileName)
  8665. {
  8666.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8667.     IVDocument FAR *lpRet= NULL;
  8668.     CHECK_IP(GetIP(), CVisioDocuments, Add);
  8669.     if (NULL!=GetIP())
  8670.         hr= GetIP()->Add(FileName, &lpRet);
  8671.     CHECK_HRESULT(hr, CVisioDocuments, Add);
  8672.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8673. }
  8674.  
  8675.  
  8676. VW_INLINE CVisioDocument FAR CVisioDocuments::Open(BSTR_HELPER_CLASS FAR &FileName)
  8677. {
  8678.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8679.     IVDocument FAR *lpRet= NULL;
  8680.     CHECK_IP(GetIP(), CVisioDocuments, Open);
  8681.     if (NULL!=GetIP())
  8682.         hr= GetIP()->Open(FileName, &lpRet);
  8683.     CHECK_HRESULT(hr, CVisioDocuments, Open);
  8684.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8685. }
  8686.  
  8687.  
  8688. VW_INLINE CVisioApplication FAR CVisioDocuments::Application()
  8689. {
  8690.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8691.     IVApplication FAR *lpRet= NULL;
  8692.     CHECK_IP(GetIP(), CVisioDocuments, Application);
  8693.     if (NULL!=GetIP())
  8694.         hr= GetIP()->get_Application(&lpRet);
  8695.     CHECK_HRESULT(hr, CVisioDocuments, Application);
  8696.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8697. }
  8698.  
  8699.  
  8700. VW_INLINE short CVisioDocuments::ObjectType()
  8701. {
  8702.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8703.     short ret= 0;
  8704.     CHECK_IP(GetIP(), CVisioDocuments, ObjectType);
  8705.     if (NULL!=GetIP())
  8706.         hr= GetIP()->get_ObjectType(&ret);
  8707.     CHECK_HRESULT(hr, CVisioDocuments, ObjectType);
  8708.     return ret;
  8709. }
  8710.  
  8711.  
  8712. VW_INLINE CVisioDocument FAR CVisioDocuments::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  8713. {
  8714.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8715.     IVDocument FAR *lpRet= NULL;
  8716.     CHECK_IP(GetIP(), CVisioDocuments, Item);
  8717.     if (NULL!=GetIP())
  8718.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  8719.     CHECK_HRESULT(hr, CVisioDocuments, Item);
  8720.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8721. }
  8722.  
  8723.  
  8724. VW_INLINE short CVisioDocuments::Count()
  8725. {
  8726.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8727.     short ret= 0;
  8728.     CHECK_IP(GetIP(), CVisioDocuments, Count);
  8729.     if (NULL!=GetIP())
  8730.         hr= GetIP()->get_Count(&ret);
  8731.     CHECK_HRESULT(hr, CVisioDocuments, Count);
  8732.     return ret;
  8733. }
  8734.  
  8735.  
  8736. VW_INLINE CVisioDocument FAR CVisioDocuments::OpenEx(BSTR_HELPER_CLASS FAR &FileName, short Flags)
  8737. {
  8738.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8739.     IVDocument FAR *lpRet= NULL;
  8740.     CHECK_IP(GetIP(), CVisioDocuments, OpenEx);
  8741.     if (NULL!=GetIP())
  8742.         hr= GetIP()->OpenEx(FileName, Flags, &lpRet);
  8743.     CHECK_HRESULT(hr, CVisioDocuments, OpenEx);
  8744.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8745. }
  8746.  
  8747.  
  8748. VW_INLINE CVisioEventList FAR CVisioDocuments::EventList()
  8749. {
  8750.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8751.     IVEventList FAR *lpRet= NULL;
  8752.     CHECK_IP(GetIP(), CVisioDocuments, EventList);
  8753.     if (NULL!=GetIP())
  8754.         hr= GetIP()->get_EventList(&lpRet);
  8755.     CHECK_HRESULT(hr, CVisioDocuments, EventList);
  8756.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8757. }
  8758.  
  8759.  
  8760. VW_INLINE short CVisioDocuments::PersistsEvents()
  8761. {
  8762.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8763.     short ret= 0;
  8764.     CHECK_IP(GetIP(), CVisioDocuments, PersistsEvents);
  8765.     if (NULL!=GetIP())
  8766.         hr= GetIP()->get_PersistsEvents(&ret);
  8767.     CHECK_HRESULT(hr, CVisioDocuments, PersistsEvents);
  8768.     return ret;
  8769. }
  8770.  
  8771.  
  8772. VW_INLINE void CVisioDocuments::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  8773. {
  8774.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8775.     CHECK_IP(GetIP(), CVisioDocuments, GetNames);
  8776.     if (NULL!=GetIP())
  8777.         hr= GetIP()->GetNames(NameArray);
  8778.     CHECK_HRESULT(hr, CVisioDocuments, GetNames);
  8779. }
  8780.  
  8781.  
  8782.  
  8783. //  ***************************************************************************
  8784. //  Implementation of class CVisioMaster
  8785.  
  8786. VW_INLINE CVisioDocument FAR CVisioMaster::Document()
  8787. {
  8788.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8789.     IVDocument FAR *lpRet= NULL;
  8790.     CHECK_IP(GetIP(), CVisioMaster, Document);
  8791.     if (NULL!=GetIP())
  8792.         hr= GetIP()->get_Document(&lpRet);
  8793.     CHECK_HRESULT(hr, CVisioMaster, Document);
  8794.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8795. }
  8796.  
  8797.  
  8798. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMaster::getPrompt()
  8799. {
  8800.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8801.     BSTR ret= 0;
  8802.     CHECK_IP(GetIP(), CVisioMaster, getPrompt);
  8803.     if (NULL!=GetIP())
  8804.         hr= GetIP()->get_Prompt(&ret);
  8805.     CHECK_HRESULT(hr, CVisioMaster, getPrompt);
  8806.     return BSTR_HELPER_CLASS(ret, TRUE);
  8807. }
  8808.  
  8809.  
  8810. VW_INLINE void CVisioMaster::putPrompt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8811. {
  8812.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8813.     CHECK_IP(GetIP(), CVisioMaster, putPrompt);
  8814.     if (NULL!=GetIP())
  8815.         hr= GetIP()->put_Prompt(param01);
  8816.     CHECK_HRESULT(hr, CVisioMaster, putPrompt);
  8817. }
  8818.  
  8819.  
  8820. VW_INLINE short CVisioMaster::getAlignName()
  8821. {
  8822.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8823.     short ret= 0;
  8824.     CHECK_IP(GetIP(), CVisioMaster, getAlignName);
  8825.     if (NULL!=GetIP())
  8826.         hr= GetIP()->get_AlignName(&ret);
  8827.     CHECK_HRESULT(hr, CVisioMaster, getAlignName);
  8828.     return ret;
  8829. }
  8830.  
  8831.  
  8832. VW_INLINE void CVisioMaster::putAlignName(VW_CONST short param01)
  8833. {
  8834.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8835.     CHECK_IP(GetIP(), CVisioMaster, putAlignName);
  8836.     if (NULL!=GetIP())
  8837.         hr= GetIP()->put_AlignName(param01);
  8838.     CHECK_HRESULT(hr, CVisioMaster, putAlignName);
  8839. }
  8840.  
  8841.  
  8842. VW_INLINE short CVisioMaster::getIconSize()
  8843. {
  8844.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8845.     short ret= 0;
  8846.     CHECK_IP(GetIP(), CVisioMaster, getIconSize);
  8847.     if (NULL!=GetIP())
  8848.         hr= GetIP()->get_IconSize(&ret);
  8849.     CHECK_HRESULT(hr, CVisioMaster, getIconSize);
  8850.     return ret;
  8851. }
  8852.  
  8853.  
  8854. VW_INLINE void CVisioMaster::putIconSize(VW_CONST short param01)
  8855. {
  8856.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8857.     CHECK_IP(GetIP(), CVisioMaster, putIconSize);
  8858.     if (NULL!=GetIP())
  8859.         hr= GetIP()->put_IconSize(param01);
  8860.     CHECK_HRESULT(hr, CVisioMaster, putIconSize);
  8861. }
  8862.  
  8863.  
  8864. VW_INLINE short CVisioMaster::getIconUpdate()
  8865. {
  8866.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8867.     short ret= 0;
  8868.     CHECK_IP(GetIP(), CVisioMaster, getIconUpdate);
  8869.     if (NULL!=GetIP())
  8870.         hr= GetIP()->get_IconUpdate(&ret);
  8871.     CHECK_HRESULT(hr, CVisioMaster, getIconUpdate);
  8872.     return ret;
  8873. }
  8874.  
  8875.  
  8876. VW_INLINE void CVisioMaster::putIconUpdate(VW_CONST short param01)
  8877. {
  8878.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8879.     CHECK_IP(GetIP(), CVisioMaster, putIconUpdate);
  8880.     if (NULL!=GetIP())
  8881.         hr= GetIP()->put_IconUpdate(param01);
  8882.     CHECK_HRESULT(hr, CVisioMaster, putIconUpdate);
  8883. }
  8884.  
  8885.  
  8886. VW_INLINE CVisioApplication FAR CVisioMaster::Application()
  8887. {
  8888.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8889.     IVApplication FAR *lpRet= NULL;
  8890.     CHECK_IP(GetIP(), CVisioMaster, Application);
  8891.     if (NULL!=GetIP())
  8892.         hr= GetIP()->get_Application(&lpRet);
  8893.     CHECK_HRESULT(hr, CVisioMaster, Application);
  8894.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8895. }
  8896.  
  8897.  
  8898. VW_INLINE short CVisioMaster::Stat()
  8899. {
  8900.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8901.     short ret= 0;
  8902.     CHECK_IP(GetIP(), CVisioMaster, Stat);
  8903.     if (NULL!=GetIP())
  8904.         hr= GetIP()->get_Stat(&ret);
  8905.     CHECK_HRESULT(hr, CVisioMaster, Stat);
  8906.     return ret;
  8907. }
  8908.  
  8909.  
  8910. VW_INLINE short CVisioMaster::ObjectType()
  8911. {
  8912.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8913.     short ret= 0;
  8914.     CHECK_IP(GetIP(), CVisioMaster, ObjectType);
  8915.     if (NULL!=GetIP())
  8916.         hr= GetIP()->get_ObjectType(&ret);
  8917.     CHECK_HRESULT(hr, CVisioMaster, ObjectType);
  8918.     return ret;
  8919. }
  8920.  
  8921.  
  8922. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMaster::getName()
  8923. {
  8924.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8925.     BSTR ret= 0;
  8926.     CHECK_IP(GetIP(), CVisioMaster, getName);
  8927.     if (NULL!=GetIP())
  8928.         hr= GetIP()->get_Name(&ret);
  8929.     CHECK_HRESULT(hr, CVisioMaster, getName);
  8930.     return BSTR_HELPER_CLASS(ret, TRUE);
  8931. }
  8932.  
  8933.  
  8934. VW_INLINE void CVisioMaster::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  8935. {
  8936.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8937.     CHECK_IP(GetIP(), CVisioMaster, putName);
  8938.     if (NULL!=GetIP())
  8939.         hr= GetIP()->put_Name(param01);
  8940.     CHECK_HRESULT(hr, CVisioMaster, putName);
  8941. }
  8942.  
  8943.  
  8944. VW_INLINE CVisioShapes FAR CVisioMaster::Shapes()
  8945. {
  8946.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8947.     IVShapes FAR *lpRet= NULL;
  8948.     CHECK_IP(GetIP(), CVisioMaster, Shapes);
  8949.     if (NULL!=GetIP())
  8950.         hr= GetIP()->get_Shapes(&lpRet);
  8951.     CHECK_HRESULT(hr, CVisioMaster, Shapes);
  8952.     return CVisioShapes(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  8953. }
  8954.  
  8955.  
  8956. VW_INLINE short CVisioMaster::Index()
  8957. {
  8958.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8959.     short ret= 0;
  8960.     CHECK_IP(GetIP(), CVisioMaster, Index);
  8961.     if (NULL!=GetIP())
  8962.         hr= GetIP()->get_Index(&ret);
  8963.     CHECK_HRESULT(hr, CVisioMaster, Index);
  8964.     return ret;
  8965. }
  8966.  
  8967.  
  8968. VW_INLINE short CVisioMaster::OneD()
  8969. {
  8970.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8971.     short ret= 0;
  8972.     CHECK_IP(GetIP(), CVisioMaster, OneD);
  8973.     if (NULL!=GetIP())
  8974.         hr= GetIP()->get_OneD(&ret);
  8975.     CHECK_HRESULT(hr, CVisioMaster, OneD);
  8976.     return ret;
  8977. }
  8978.  
  8979.  
  8980. VW_INLINE void CVisioMaster::Delete()
  8981. {
  8982.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8983.     CHECK_IP(GetIP(), CVisioMaster, Delete);
  8984.     if (NULL!=GetIP())
  8985.         hr= GetIP()->Delete();
  8986.     CHECK_HRESULT(hr, CVisioMaster, Delete);
  8987. }
  8988.  
  8989.  
  8990. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMaster::UniqueID()
  8991. {
  8992.     HRESULT hr= VW_INTERFACE_NOT_SET;
  8993.     BSTR ret= 0;
  8994.     CHECK_IP(GetIP(), CVisioMaster, UniqueID);
  8995.     if (NULL!=GetIP())
  8996.         hr= GetIP()->get_UniqueID(&ret);
  8997.     CHECK_HRESULT(hr, CVisioMaster, UniqueID);
  8998.     return BSTR_HELPER_CLASS(ret, TRUE);
  8999. }
  9000.  
  9001.  
  9002. VW_INLINE CVisioLayers FAR CVisioMaster::Layers()
  9003. {
  9004.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9005.     IVLayers FAR *lpRet= NULL;
  9006.     CHECK_IP(GetIP(), CVisioMaster, Layers);
  9007.     if (NULL!=GetIP())
  9008.         hr= GetIP()->get_Layers(&lpRet);
  9009.     CHECK_HRESULT(hr, CVisioMaster, Layers);
  9010.     return CVisioLayers(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9011. }
  9012.  
  9013.  
  9014. VW_INLINE CVisioShape FAR CVisioMaster::PageSheet()
  9015. {
  9016.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9017.     IVShape FAR *lpRet= NULL;
  9018.     CHECK_IP(GetIP(), CVisioMaster, PageSheet);
  9019.     if (NULL!=GetIP())
  9020.         hr= GetIP()->get_PageSheet(&lpRet);
  9021.     CHECK_HRESULT(hr, CVisioMaster, PageSheet);
  9022.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9023. }
  9024.  
  9025.  
  9026. VW_INLINE CVisioShape FAR CVisioMaster::Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos)
  9027. {
  9028.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9029.     IVShape FAR *lpRet= NULL;
  9030.     CHECK_IP(GetIP(), CVisioMaster, Drop);
  9031.     if (NULL!=GetIP())
  9032.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpRet);
  9033.     CHECK_HRESULT(hr, CVisioMaster, Drop);
  9034.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9035. }
  9036.  
  9037.  
  9038. VW_INLINE void CVisioMaster::CenterDrawing()
  9039. {
  9040.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9041.     CHECK_IP(GetIP(), CVisioMaster, CenterDrawing);
  9042.     if (NULL!=GetIP())
  9043.         hr= GetIP()->CenterDrawing();
  9044.     CHECK_HRESULT(hr, CVisioMaster, CenterDrawing);
  9045. }
  9046.  
  9047.  
  9048. VW_INLINE CVisioEventList FAR CVisioMaster::EventList()
  9049. {
  9050.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9051.     IVEventList FAR *lpRet= NULL;
  9052.     CHECK_IP(GetIP(), CVisioMaster, EventList);
  9053.     if (NULL!=GetIP())
  9054.         hr= GetIP()->get_EventList(&lpRet);
  9055.     CHECK_HRESULT(hr, CVisioMaster, EventList);
  9056.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9057. }
  9058.  
  9059.  
  9060. VW_INLINE short CVisioMaster::PersistsEvents()
  9061. {
  9062.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9063.     short ret= 0;
  9064.     CHECK_IP(GetIP(), CVisioMaster, PersistsEvents);
  9065.     if (NULL!=GetIP())
  9066.         hr= GetIP()->get_PersistsEvents(&ret);
  9067.     CHECK_HRESULT(hr, CVisioMaster, PersistsEvents);
  9068.     return ret;
  9069. }
  9070.  
  9071.  
  9072. VW_INLINE CVisioShape FAR CVisioMaster::DrawLine(double xLeft, double yTop, double xRight, double yBottom)
  9073. {
  9074.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9075.     IVShape FAR *lpRet= NULL;
  9076.     CHECK_IP(GetIP(), CVisioMaster, DrawLine);
  9077.     if (NULL!=GetIP())
  9078.         hr= GetIP()->DrawLine(xLeft, yTop, xRight, yBottom, &lpRet);
  9079.     CHECK_HRESULT(hr, CVisioMaster, DrawLine);
  9080.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9081. }
  9082.  
  9083.  
  9084. VW_INLINE CVisioShape FAR CVisioMaster::DrawRectangle(double xLeft, double yTop, double xRight, double yBottom)
  9085. {
  9086.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9087.     IVShape FAR *lpRet= NULL;
  9088.     CHECK_IP(GetIP(), CVisioMaster, DrawRectangle);
  9089.     if (NULL!=GetIP())
  9090.         hr= GetIP()->DrawRectangle(xLeft, yTop, xRight, yBottom, &lpRet);
  9091.     CHECK_HRESULT(hr, CVisioMaster, DrawRectangle);
  9092.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9093. }
  9094.  
  9095.  
  9096. VW_INLINE CVisioShape FAR CVisioMaster::DrawOval(double xLeft, double yTop, double xRight, double yBottom)
  9097. {
  9098.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9099.     IVShape FAR *lpRet= NULL;
  9100.     CHECK_IP(GetIP(), CVisioMaster, DrawOval);
  9101.     if (NULL!=GetIP())
  9102.         hr= GetIP()->DrawOval(xLeft, yTop, xRight, yBottom, &lpRet);
  9103.     CHECK_HRESULT(hr, CVisioMaster, DrawOval);
  9104.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9105. }
  9106.  
  9107.  
  9108. VW_INLINE CVisioShape FAR CVisioMaster::DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags)
  9109. {
  9110.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9111.     IVShape FAR *lpRet= NULL;
  9112.     CHECK_IP(GetIP(), CVisioMaster, DrawSpline);
  9113.     if (NULL!=GetIP())
  9114.         hr= GetIP()->DrawSpline(xyArray, Tolerance, Flags, &lpRet);
  9115.     CHECK_HRESULT(hr, CVisioMaster, DrawSpline);
  9116.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9117. }
  9118.  
  9119.  
  9120. VW_INLINE CVisioShape FAR CVisioMaster::DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags)
  9121. {
  9122.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9123.     IVShape FAR *lpRet= NULL;
  9124.     CHECK_IP(GetIP(), CVisioMaster, DrawBezier);
  9125.     if (NULL!=GetIP())
  9126.         hr= GetIP()->DrawBezier(xyArray, degree, Flags, &lpRet);
  9127.     CHECK_HRESULT(hr, CVisioMaster, DrawBezier);
  9128.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9129. }
  9130.  
  9131.  
  9132. VW_INLINE CVisioShape FAR CVisioMaster::DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags)
  9133. {
  9134.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9135.     IVShape FAR *lpRet= NULL;
  9136.     CHECK_IP(GetIP(), CVisioMaster, DrawPolyline);
  9137.     if (NULL!=GetIP())
  9138.         hr= GetIP()->DrawPolyline(xyArray, Flags, &lpRet);
  9139.     CHECK_HRESULT(hr, CVisioMaster, DrawPolyline);
  9140.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9141. }
  9142.  
  9143.  
  9144. VW_INLINE CVisioShape FAR CVisioMaster::Import(BSTR_HELPER_CLASS FAR &FileName)
  9145. {
  9146.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9147.     IVShape FAR *lpRet= NULL;
  9148.     CHECK_IP(GetIP(), CVisioMaster, Import);
  9149.     if (NULL!=GetIP())
  9150.         hr= GetIP()->Import(FileName, &lpRet);
  9151.     CHECK_HRESULT(hr, CVisioMaster, Import);
  9152.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9153. }
  9154.  
  9155.  
  9156. VW_INLINE void CVisioMaster::Export(BSTR_HELPER_CLASS FAR &FileName)
  9157. {
  9158.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9159.     CHECK_IP(GetIP(), CVisioMaster, Export);
  9160.     if (NULL!=GetIP())
  9161.         hr= GetIP()->Export(FileName);
  9162.     CHECK_HRESULT(hr, CVisioMaster, Export);
  9163. }
  9164.  
  9165.  
  9166. VW_INLINE CVisioShape FAR CVisioMaster::InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags)
  9167. {
  9168.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9169.     IVShape FAR *lpRet= NULL;
  9170.     CHECK_IP(GetIP(), CVisioMaster, InsertFromFile);
  9171.     if (NULL!=GetIP())
  9172.         hr= GetIP()->InsertFromFile(FileName, Flags, &lpRet);
  9173.     CHECK_HRESULT(hr, CVisioMaster, InsertFromFile);
  9174.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9175. }
  9176.  
  9177.  
  9178. VW_INLINE CVisioShape FAR CVisioMaster::InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags)
  9179. {
  9180.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9181.     IVShape FAR *lpRet= NULL;
  9182.     CHECK_IP(GetIP(), CVisioMaster, InsertObject);
  9183.     if (NULL!=GetIP())
  9184.         hr= GetIP()->InsertObject(ClassOrProgID, Flags, &lpRet);
  9185.     CHECK_HRESULT(hr, CVisioMaster, InsertObject);
  9186.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9187. }
  9188.  
  9189.  
  9190. VW_INLINE CVisioWindow FAR CVisioMaster::OpenDrawWindow()
  9191. {
  9192.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9193.     IVWindow FAR *lpRet= NULL;
  9194.     CHECK_IP(GetIP(), CVisioMaster, OpenDrawWindow);
  9195.     if (NULL!=GetIP())
  9196.         hr= GetIP()->OpenDrawWindow(&lpRet);
  9197.     CHECK_HRESULT(hr, CVisioMaster, OpenDrawWindow);
  9198.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9199. }
  9200.  
  9201.  
  9202. VW_INLINE CVisioWindow FAR CVisioMaster::OpenIconWindow()
  9203. {
  9204.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9205.     IVWindow FAR *lpRet= NULL;
  9206.     CHECK_IP(GetIP(), CVisioMaster, OpenIconWindow);
  9207.     if (NULL!=GetIP())
  9208.         hr= GetIP()->OpenIconWindow(&lpRet);
  9209.     CHECK_HRESULT(hr, CVisioMaster, OpenIconWindow);
  9210.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9211. }
  9212.  
  9213.  
  9214. VW_INLINE CVisioMaster FAR CVisioMaster::Open()
  9215. {
  9216.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9217.     IVMaster FAR *lpRet= NULL;
  9218.     CHECK_IP(GetIP(), CVisioMaster, Open);
  9219.     if (NULL!=GetIP())
  9220.         hr= GetIP()->Open(&lpRet);
  9221.     CHECK_HRESULT(hr, CVisioMaster, Open);
  9222.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9223. }
  9224.  
  9225.  
  9226. VW_INLINE void CVisioMaster::Close()
  9227. {
  9228.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9229.     CHECK_IP(GetIP(), CVisioMaster, Close);
  9230.     if (NULL!=GetIP())
  9231.         hr= GetIP()->Close();
  9232.     CHECK_HRESULT(hr, CVisioMaster, Close);
  9233. }
  9234.  
  9235.  
  9236. VW_INLINE short CVisioMaster::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray)
  9237. {
  9238.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9239.     short ret= 0;
  9240.     CHECK_IP(GetIP(), CVisioMaster, DropMany);
  9241.     if (NULL!=GetIP())
  9242.         hr= GetIP()->DropMany(ObjectsToInstance, xyArray, IDArray, &ret);
  9243.     CHECK_HRESULT(hr, CVisioMaster, DropMany);
  9244.     return ret;
  9245. }
  9246.  
  9247.  
  9248. VW_INLINE void CVisioMaster::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  9249. {
  9250.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9251.     CHECK_IP(GetIP(), CVisioMaster, GetFormulas);
  9252.     if (NULL!=GetIP())
  9253.         hr= GetIP()->GetFormulas(SID_SRCStream, formulaArray);
  9254.     CHECK_HRESULT(hr, CVisioMaster, GetFormulas);
  9255. }
  9256.  
  9257.  
  9258. VW_INLINE void CVisioMaster::GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  9259. {
  9260.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9261.     CHECK_IP(GetIP(), CVisioMaster, GetResults);
  9262.     if (NULL!=GetIP())
  9263.         hr= GetIP()->GetResults(SID_SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  9264.     CHECK_HRESULT(hr, CVisioMaster, GetResults);
  9265. }
  9266.  
  9267.  
  9268. VW_INLINE short CVisioMaster::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags)
  9269. {
  9270.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9271.     short ret= 0;
  9272.     CHECK_IP(GetIP(), CVisioMaster, SetFormulas);
  9273.     if (NULL!=GetIP())
  9274.         hr= GetIP()->SetFormulas(SID_SRCStream, formulaArray, Flags, &ret);
  9275.     CHECK_HRESULT(hr, CVisioMaster, SetFormulas);
  9276.     return ret;
  9277. }
  9278.  
  9279.  
  9280. VW_INLINE short CVisioMaster::SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags)
  9281. {
  9282.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9283.     short ret= 0;
  9284.     CHECK_IP(GetIP(), CVisioMaster, SetResults);
  9285.     if (NULL!=GetIP())
  9286.         hr= GetIP()->SetResults(SID_SRCStream, UnitsNamesOrCodes, resultArray, Flags, &ret);
  9287.     CHECK_HRESULT(hr, CVisioMaster, SetResults);
  9288.     return ret;
  9289. }
  9290.  
  9291.  
  9292. VW_INLINE CVisioConnects FAR CVisioMaster::Connects()
  9293. {
  9294.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9295.     IVConnects FAR *lpRet= NULL;
  9296.     CHECK_IP(GetIP(), CVisioMaster, Connects);
  9297.     if (NULL!=GetIP())
  9298.         hr= GetIP()->get_Connects(&lpRet);
  9299.     CHECK_HRESULT(hr, CVisioMaster, Connects);
  9300.     return CVisioConnects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9301. }
  9302.  
  9303.  
  9304. VW_INLINE void CVisioMaster::ImportIcon(BSTR_HELPER_CLASS FAR &FileName)
  9305. {
  9306.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9307.     CHECK_IP(GetIP(), CVisioMaster, ImportIcon);
  9308.     if (NULL!=GetIP())
  9309.         hr= GetIP()->ImportIcon(FileName);
  9310.     CHECK_HRESULT(hr, CVisioMaster, ImportIcon);
  9311. }
  9312.  
  9313.  
  9314. VW_INLINE void CVisioMaster::ExportIcon(BSTR_HELPER_CLASS FAR &FileName, short Flags)
  9315. {
  9316.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9317.     CHECK_IP(GetIP(), CVisioMaster, ExportIcon);
  9318.     if (NULL!=GetIP())
  9319.         hr= GetIP()->ExportIcon(FileName, Flags);
  9320.     CHECK_HRESULT(hr, CVisioMaster, ExportIcon);
  9321. }
  9322.  
  9323.  
  9324. VW_INLINE void CVisioMaster::Layout()
  9325. {
  9326.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9327.     CHECK_IP(GetIP(), CVisioMaster, Layout);
  9328.     if (NULL!=GetIP())
  9329.         hr= GetIP()->Layout();
  9330.     CHECK_HRESULT(hr, CVisioMaster, Layout);
  9331. }
  9332.  
  9333.  
  9334. VW_INLINE void CVisioMaster::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  9335. {
  9336.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9337.     CHECK_IP(GetIP(), CVisioMaster, BoundingBox);
  9338.     if (NULL!=GetIP())
  9339.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  9340.     CHECK_HRESULT(hr, CVisioMaster, BoundingBox);
  9341. }
  9342.  
  9343.  
  9344. VW_INLINE short CVisioMaster::ID()
  9345. {
  9346.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9347.     short ret= 0;
  9348.     CHECK_IP(GetIP(), CVisioMaster, ID);
  9349.     if (NULL!=GetIP())
  9350.         hr= GetIP()->get_ID(&ret);
  9351.     CHECK_HRESULT(hr, CVisioMaster, ID);
  9352.     return ret;
  9353. }
  9354.  
  9355.  
  9356. VW_INLINE CVisioOLEObjects FAR CVisioMaster::OLEObjects()
  9357. {
  9358.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9359.     IVOLEObjects FAR *lpRet= NULL;
  9360.     CHECK_IP(GetIP(), CVisioMaster, OLEObjects);
  9361.     if (NULL!=GetIP())
  9362.         hr= GetIP()->get_OLEObjects(&lpRet);
  9363.     CHECK_HRESULT(hr, CVisioMaster, OLEObjects);
  9364.     return CVisioOLEObjects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9365. }
  9366.  
  9367.  
  9368. VW_INLINE short CVisioMaster::getPatternFlags()
  9369. {
  9370.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9371.     short ret= 0;
  9372.     CHECK_IP(GetIP(), CVisioMaster, getPatternFlags);
  9373.     if (NULL!=GetIP())
  9374.         hr= GetIP()->get_PatternFlags(&ret);
  9375.     CHECK_HRESULT(hr, CVisioMaster, getPatternFlags);
  9376.     return ret;
  9377. }
  9378.  
  9379.  
  9380. VW_INLINE void CVisioMaster::putPatternFlags(VW_CONST short param01)
  9381. {
  9382.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9383.     CHECK_IP(GetIP(), CVisioMaster, putPatternFlags);
  9384.     if (NULL!=GetIP())
  9385.         hr= GetIP()->put_PatternFlags(param01);
  9386.     CHECK_HRESULT(hr, CVisioMaster, putPatternFlags);
  9387. }
  9388.  
  9389.  
  9390. VW_INLINE short CVisioMaster::getMatchByName()
  9391. {
  9392.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9393.     short ret= 0;
  9394.     CHECK_IP(GetIP(), CVisioMaster, getMatchByName);
  9395.     if (NULL!=GetIP())
  9396.         hr= GetIP()->get_MatchByName(&ret);
  9397.     CHECK_HRESULT(hr, CVisioMaster, getMatchByName);
  9398.     return ret;
  9399. }
  9400.  
  9401.  
  9402. VW_INLINE void CVisioMaster::putMatchByName(VW_CONST short param01)
  9403. {
  9404.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9405.     CHECK_IP(GetIP(), CVisioMaster, putMatchByName);
  9406.     if (NULL!=GetIP())
  9407.         hr= GetIP()->put_MatchByName(param01);
  9408.     CHECK_HRESULT(hr, CVisioMaster, putMatchByName);
  9409. }
  9410.  
  9411.  
  9412.  
  9413. //  ***************************************************************************
  9414. //  Implementation of class CVisioMasters
  9415.  
  9416. VW_INLINE CVisioApplication FAR CVisioMasters::Application()
  9417. {
  9418.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9419.     IVApplication FAR *lpRet= NULL;
  9420.     CHECK_IP(GetIP(), CVisioMasters, Application);
  9421.     if (NULL!=GetIP())
  9422.         hr= GetIP()->get_Application(&lpRet);
  9423.     CHECK_HRESULT(hr, CVisioMasters, Application);
  9424.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9425. }
  9426.  
  9427.  
  9428. VW_INLINE short CVisioMasters::ObjectType()
  9429. {
  9430.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9431.     short ret= 0;
  9432.     CHECK_IP(GetIP(), CVisioMasters, ObjectType);
  9433.     if (NULL!=GetIP())
  9434.         hr= GetIP()->get_ObjectType(&ret);
  9435.     CHECK_HRESULT(hr, CVisioMasters, ObjectType);
  9436.     return ret;
  9437. }
  9438.  
  9439.  
  9440. VW_INLINE CVisioMaster FAR CVisioMasters::Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex)
  9441. {
  9442.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9443.     IVMaster FAR *lpRet= NULL;
  9444.     CHECK_IP(GetIP(), CVisioMasters, Item);
  9445.     if (NULL!=GetIP())
  9446.         hr= GetIP()->get_Item(NameUIDOrIndex, &lpRet);
  9447.     CHECK_HRESULT(hr, CVisioMasters, Item);
  9448.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9449. }
  9450.  
  9451.  
  9452. VW_INLINE short CVisioMasters::Count()
  9453. {
  9454.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9455.     short ret= 0;
  9456.     CHECK_IP(GetIP(), CVisioMasters, Count);
  9457.     if (NULL!=GetIP())
  9458.         hr= GetIP()->get_Count(&ret);
  9459.     CHECK_HRESULT(hr, CVisioMasters, Count);
  9460.     return ret;
  9461. }
  9462.  
  9463.  
  9464. VW_INLINE CVisioDocument FAR CVisioMasters::Document()
  9465. {
  9466.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9467.     IVDocument FAR *lpRet= NULL;
  9468.     CHECK_IP(GetIP(), CVisioMasters, Document);
  9469.     if (NULL!=GetIP())
  9470.         hr= GetIP()->get_Document(&lpRet);
  9471.     CHECK_HRESULT(hr, CVisioMasters, Document);
  9472.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9473. }
  9474.  
  9475.  
  9476. VW_INLINE short CVisioMasters::Stat()
  9477. {
  9478.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9479.     short ret= 0;
  9480.     CHECK_IP(GetIP(), CVisioMasters, Stat);
  9481.     if (NULL!=GetIP())
  9482.         hr= GetIP()->get_Stat(&ret);
  9483.     CHECK_HRESULT(hr, CVisioMasters, Stat);
  9484.     return ret;
  9485. }
  9486.  
  9487.  
  9488. VW_INLINE CVisioEventList FAR CVisioMasters::EventList()
  9489. {
  9490.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9491.     IVEventList FAR *lpRet= NULL;
  9492.     CHECK_IP(GetIP(), CVisioMasters, EventList);
  9493.     if (NULL!=GetIP())
  9494.         hr= GetIP()->get_EventList(&lpRet);
  9495.     CHECK_HRESULT(hr, CVisioMasters, EventList);
  9496.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9497. }
  9498.  
  9499.  
  9500. VW_INLINE short CVisioMasters::PersistsEvents()
  9501. {
  9502.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9503.     short ret= 0;
  9504.     CHECK_IP(GetIP(), CVisioMasters, PersistsEvents);
  9505.     if (NULL!=GetIP())
  9506.         hr= GetIP()->get_PersistsEvents(&ret);
  9507.     CHECK_HRESULT(hr, CVisioMasters, PersistsEvents);
  9508.     return ret;
  9509. }
  9510.  
  9511.  
  9512. VW_INLINE CVisioMaster FAR CVisioMasters::Add()
  9513. {
  9514.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9515.     IVMaster FAR *lpRet= NULL;
  9516.     CHECK_IP(GetIP(), CVisioMasters, Add);
  9517.     if (NULL!=GetIP())
  9518.         hr= GetIP()->Add(&lpRet);
  9519.     CHECK_HRESULT(hr, CVisioMasters, Add);
  9520.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9521. }
  9522.  
  9523.  
  9524. VW_INLINE void CVisioMasters::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  9525. {
  9526.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9527.     CHECK_IP(GetIP(), CVisioMasters, GetNames);
  9528.     if (NULL!=GetIP())
  9529.         hr= GetIP()->GetNames(NameArray);
  9530.     CHECK_HRESULT(hr, CVisioMasters, GetNames);
  9531. }
  9532.  
  9533.  
  9534.  
  9535. //  ***************************************************************************
  9536. //  Implementation of class CVisioPage
  9537.  
  9538. VW_INLINE CVisioDocument FAR CVisioPage::Document()
  9539. {
  9540.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9541.     IVDocument FAR *lpRet= NULL;
  9542.     CHECK_IP(GetIP(), CVisioPage, Document);
  9543.     if (NULL!=GetIP())
  9544.         hr= GetIP()->get_Document(&lpRet);
  9545.     CHECK_HRESULT(hr, CVisioPage, Document);
  9546.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9547. }
  9548.  
  9549.  
  9550. VW_INLINE CVisioApplication FAR CVisioPage::Application()
  9551. {
  9552.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9553.     IVApplication FAR *lpRet= NULL;
  9554.     CHECK_IP(GetIP(), CVisioPage, Application);
  9555.     if (NULL!=GetIP())
  9556.         hr= GetIP()->get_Application(&lpRet);
  9557.     CHECK_HRESULT(hr, CVisioPage, Application);
  9558.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9559. }
  9560.  
  9561.  
  9562. VW_INLINE short CVisioPage::Stat()
  9563. {
  9564.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9565.     short ret= 0;
  9566.     CHECK_IP(GetIP(), CVisioPage, Stat);
  9567.     if (NULL!=GetIP())
  9568.         hr= GetIP()->get_Stat(&ret);
  9569.     CHECK_HRESULT(hr, CVisioPage, Stat);
  9570.     return ret;
  9571. }
  9572.  
  9573.  
  9574. VW_INLINE short CVisioPage::getBackground()
  9575. {
  9576.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9577.     short ret= 0;
  9578.     CHECK_IP(GetIP(), CVisioPage, getBackground);
  9579.     if (NULL!=GetIP())
  9580.         hr= GetIP()->get_Background(&ret);
  9581.     CHECK_HRESULT(hr, CVisioPage, getBackground);
  9582.     return ret;
  9583. }
  9584.  
  9585.  
  9586. VW_INLINE void CVisioPage::putBackground(VW_CONST short param01)
  9587. {
  9588.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9589.     CHECK_IP(GetIP(), CVisioPage, putBackground);
  9590.     if (NULL!=GetIP())
  9591.         hr= GetIP()->put_Background(param01);
  9592.     CHECK_HRESULT(hr, CVisioPage, putBackground);
  9593. }
  9594.  
  9595.  
  9596. VW_INLINE void CVisioPage::Paste()
  9597. {
  9598.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9599.     CHECK_IP(GetIP(), CVisioPage, Paste);
  9600.     if (NULL!=GetIP())
  9601.         hr= GetIP()->Paste();
  9602.     CHECK_HRESULT(hr, CVisioPage, Paste);
  9603. }
  9604.  
  9605.  
  9606. VW_INLINE void CVisioPage::PasteSpecial(short Format)
  9607. {
  9608.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9609.     CHECK_IP(GetIP(), CVisioPage, PasteSpecial);
  9610.     if (NULL!=GetIP())
  9611.         hr= GetIP()->PasteSpecial(Format);
  9612.     CHECK_HRESULT(hr, CVisioPage, PasteSpecial);
  9613. }
  9614.  
  9615.  
  9616. VW_INLINE short CVisioPage::ObjectType()
  9617. {
  9618.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9619.     short ret= 0;
  9620.     CHECK_IP(GetIP(), CVisioPage, ObjectType);
  9621.     if (NULL!=GetIP())
  9622.         hr= GetIP()->get_ObjectType(&ret);
  9623.     CHECK_HRESULT(hr, CVisioPage, ObjectType);
  9624.     return ret;
  9625. }
  9626.  
  9627.  
  9628. VW_INLINE CVisioShape FAR CVisioPage::DrawLine(double xLeft, double yTop, double xRight, double yBottom)
  9629. {
  9630.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9631.     IVShape FAR *lpRet= NULL;
  9632.     CHECK_IP(GetIP(), CVisioPage, DrawLine);
  9633.     if (NULL!=GetIP())
  9634.         hr= GetIP()->DrawLine(xLeft, yTop, xRight, yBottom, &lpRet);
  9635.     CHECK_HRESULT(hr, CVisioPage, DrawLine);
  9636.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9637. }
  9638.  
  9639.  
  9640. VW_INLINE CVisioShape FAR CVisioPage::DrawRectangle(double xLeft, double yTop, double xRight, double yBottom)
  9641. {
  9642.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9643.     IVShape FAR *lpRet= NULL;
  9644.     CHECK_IP(GetIP(), CVisioPage, DrawRectangle);
  9645.     if (NULL!=GetIP())
  9646.         hr= GetIP()->DrawRectangle(xLeft, yTop, xRight, yBottom, &lpRet);
  9647.     CHECK_HRESULT(hr, CVisioPage, DrawRectangle);
  9648.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9649. }
  9650.  
  9651.  
  9652. VW_INLINE CVisioShape FAR CVisioPage::DrawOval(double xLeft, double yTop, double xRight, double yBottom)
  9653. {
  9654.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9655.     IVShape FAR *lpRet= NULL;
  9656.     CHECK_IP(GetIP(), CVisioPage, DrawOval);
  9657.     if (NULL!=GetIP())
  9658.         hr= GetIP()->DrawOval(xLeft, yTop, xRight, yBottom, &lpRet);
  9659.     CHECK_HRESULT(hr, CVisioPage, DrawOval);
  9660.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9661. }
  9662.  
  9663.  
  9664. VW_INLINE short CVisioPage::Index()
  9665. {
  9666.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9667.     short ret= 0;
  9668.     CHECK_IP(GetIP(), CVisioPage, Index);
  9669.     if (NULL!=GetIP())
  9670.         hr= GetIP()->get_Index(&ret);
  9671.     CHECK_HRESULT(hr, CVisioPage, Index);
  9672.     return ret;
  9673. }
  9674.  
  9675.  
  9676. VW_INLINE BSTR_HELPER_CLASS FAR CVisioPage::getName()
  9677. {
  9678.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9679.     BSTR ret= 0;
  9680.     CHECK_IP(GetIP(), CVisioPage, getName);
  9681.     if (NULL!=GetIP())
  9682.         hr= GetIP()->get_Name(&ret);
  9683.     CHECK_HRESULT(hr, CVisioPage, getName);
  9684.     return BSTR_HELPER_CLASS(ret, TRUE);
  9685. }
  9686.  
  9687.  
  9688. VW_INLINE void CVisioPage::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9689. {
  9690.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9691.     CHECK_IP(GetIP(), CVisioPage, putName);
  9692.     if (NULL!=GetIP())
  9693.         hr= GetIP()->put_Name(param01);
  9694.     CHECK_HRESULT(hr, CVisioPage, putName);
  9695. }
  9696.  
  9697.  
  9698. VW_INLINE CVisioShapes FAR CVisioPage::Shapes()
  9699. {
  9700.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9701.     IVShapes FAR *lpRet= NULL;
  9702.     CHECK_IP(GetIP(), CVisioPage, Shapes);
  9703.     if (NULL!=GetIP())
  9704.         hr= GetIP()->get_Shapes(&lpRet);
  9705.     CHECK_HRESULT(hr, CVisioPage, Shapes);
  9706.     return CVisioShapes(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9707. }
  9708.  
  9709.  
  9710. VW_INLINE CVisioShape FAR CVisioPage::Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos)
  9711. {
  9712.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9713.     IVShape FAR *lpRet= NULL;
  9714.     CHECK_IP(GetIP(), CVisioPage, Drop);
  9715.     if (NULL!=GetIP())
  9716.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpRet);
  9717.     CHECK_HRESULT(hr, CVisioPage, Drop);
  9718.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9719. }
  9720.  
  9721.  
  9722. VW_INLINE CVisioShape FAR CVisioPage::AddGuide(short Type, double xPos, double yPos)
  9723. {
  9724.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9725.     IVShape FAR *lpRet= NULL;
  9726.     CHECK_IP(GetIP(), CVisioPage, AddGuide);
  9727.     if (NULL!=GetIP())
  9728.         hr= GetIP()->AddGuide(Type, xPos, yPos, &lpRet);
  9729.     CHECK_HRESULT(hr, CVisioPage, AddGuide);
  9730.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9731. }
  9732.  
  9733.  
  9734. VW_INLINE CVisioPage FAR CVisioPage::BackPageAsObj()
  9735. {
  9736.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9737.     IVPage FAR *lpRet= NULL;
  9738.     CHECK_IP(GetIP(), CVisioPage, BackPageAsObj);
  9739.     if (NULL!=GetIP())
  9740.         hr= GetIP()->get_BackPageAsObj(&lpRet);
  9741.     CHECK_HRESULT(hr, CVisioPage, BackPageAsObj);
  9742.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9743. }
  9744.  
  9745.  
  9746. VW_INLINE void CVisioPage::BackPageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  9747. {
  9748.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9749.     CHECK_IP(GetIP(), CVisioPage, BackPageFromName);
  9750.     if (NULL!=GetIP())
  9751.         hr= GetIP()->put_BackPageFromName(param01);
  9752.     CHECK_HRESULT(hr, CVisioPage, BackPageFromName);
  9753. }
  9754.  
  9755.  
  9756. VW_INLINE void CVisioPage::Print()
  9757. {
  9758.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9759.     CHECK_IP(GetIP(), CVisioPage, Print);
  9760.     if (NULL!=GetIP())
  9761.         hr= GetIP()->Print();
  9762.     CHECK_HRESULT(hr, CVisioPage, Print);
  9763. }
  9764.  
  9765.  
  9766. VW_INLINE CVisioShape FAR CVisioPage::Import(BSTR_HELPER_CLASS FAR &FileName)
  9767. {
  9768.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9769.     IVShape FAR *lpRet= NULL;
  9770.     CHECK_IP(GetIP(), CVisioPage, Import);
  9771.     if (NULL!=GetIP())
  9772.         hr= GetIP()->Import(FileName, &lpRet);
  9773.     CHECK_HRESULT(hr, CVisioPage, Import);
  9774.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9775. }
  9776.  
  9777.  
  9778. VW_INLINE void CVisioPage::Export(BSTR_HELPER_CLASS FAR &FileName)
  9779. {
  9780.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9781.     CHECK_IP(GetIP(), CVisioPage, Export);
  9782.     if (NULL!=GetIP())
  9783.         hr= GetIP()->Export(FileName);
  9784.     CHECK_HRESULT(hr, CVisioPage, Export);
  9785. }
  9786.  
  9787.  
  9788. VW_INLINE CVisioLayers FAR CVisioPage::Layers()
  9789. {
  9790.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9791.     IVLayers FAR *lpRet= NULL;
  9792.     CHECK_IP(GetIP(), CVisioPage, Layers);
  9793.     if (NULL!=GetIP())
  9794.         hr= GetIP()->get_Layers(&lpRet);
  9795.     CHECK_HRESULT(hr, CVisioPage, Layers);
  9796.     return CVisioLayers(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9797. }
  9798.  
  9799.  
  9800. VW_INLINE CVisioShape FAR CVisioPage::PageSheet()
  9801. {
  9802.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9803.     IVShape FAR *lpRet= NULL;
  9804.     CHECK_IP(GetIP(), CVisioPage, PageSheet);
  9805.     if (NULL!=GetIP())
  9806.         hr= GetIP()->get_PageSheet(&lpRet);
  9807.     CHECK_HRESULT(hr, CVisioPage, PageSheet);
  9808.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9809. }
  9810.  
  9811.  
  9812. VW_INLINE void CVisioPage::Delete(short fRenumberPages)
  9813. {
  9814.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9815.     CHECK_IP(GetIP(), CVisioPage, Delete);
  9816.     if (NULL!=GetIP())
  9817.         hr= GetIP()->Delete(fRenumberPages);
  9818.     CHECK_HRESULT(hr, CVisioPage, Delete);
  9819. }
  9820.  
  9821.  
  9822. VW_INLINE void CVisioPage::CenterDrawing()
  9823. {
  9824.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9825.     CHECK_IP(GetIP(), CVisioPage, CenterDrawing);
  9826.     if (NULL!=GetIP())
  9827.         hr= GetIP()->CenterDrawing();
  9828.     CHECK_HRESULT(hr, CVisioPage, CenterDrawing);
  9829. }
  9830.  
  9831.  
  9832. VW_INLINE CVisioEventList FAR CVisioPage::EventList()
  9833. {
  9834.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9835.     IVEventList FAR *lpRet= NULL;
  9836.     CHECK_IP(GetIP(), CVisioPage, EventList);
  9837.     if (NULL!=GetIP())
  9838.         hr= GetIP()->get_EventList(&lpRet);
  9839.     CHECK_HRESULT(hr, CVisioPage, EventList);
  9840.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9841. }
  9842.  
  9843.  
  9844. VW_INLINE short CVisioPage::PersistsEvents()
  9845. {
  9846.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9847.     short ret= 0;
  9848.     CHECK_IP(GetIP(), CVisioPage, PersistsEvents);
  9849.     if (NULL!=GetIP())
  9850.         hr= GetIP()->get_PersistsEvents(&ret);
  9851.     CHECK_HRESULT(hr, CVisioPage, PersistsEvents);
  9852.     return ret;
  9853. }
  9854.  
  9855.  
  9856. VW_INLINE CVisioShape FAR CVisioPage::DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags)
  9857. {
  9858.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9859.     IVShape FAR *lpRet= NULL;
  9860.     CHECK_IP(GetIP(), CVisioPage, DrawSpline);
  9861.     if (NULL!=GetIP())
  9862.         hr= GetIP()->DrawSpline(xyArray, Tolerance, Flags, &lpRet);
  9863.     CHECK_HRESULT(hr, CVisioPage, DrawSpline);
  9864.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9865. }
  9866.  
  9867.  
  9868. VW_INLINE CVisioShape FAR CVisioPage::DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags)
  9869. {
  9870.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9871.     IVShape FAR *lpRet= NULL;
  9872.     CHECK_IP(GetIP(), CVisioPage, DrawBezier);
  9873.     if (NULL!=GetIP())
  9874.         hr= GetIP()->DrawBezier(xyArray, degree, Flags, &lpRet);
  9875.     CHECK_HRESULT(hr, CVisioPage, DrawBezier);
  9876.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9877. }
  9878.  
  9879.  
  9880. VW_INLINE CVisioShape FAR CVisioPage::DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags)
  9881. {
  9882.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9883.     IVShape FAR *lpRet= NULL;
  9884.     CHECK_IP(GetIP(), CVisioPage, DrawPolyline);
  9885.     if (NULL!=GetIP())
  9886.         hr= GetIP()->DrawPolyline(xyArray, Flags, &lpRet);
  9887.     CHECK_HRESULT(hr, CVisioPage, DrawPolyline);
  9888.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9889. }
  9890.  
  9891.  
  9892. VW_INLINE CVisioShape FAR CVisioPage::InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags)
  9893. {
  9894.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9895.     IVShape FAR *lpRet= NULL;
  9896.     CHECK_IP(GetIP(), CVisioPage, InsertFromFile);
  9897.     if (NULL!=GetIP())
  9898.         hr= GetIP()->InsertFromFile(FileName, Flags, &lpRet);
  9899.     CHECK_HRESULT(hr, CVisioPage, InsertFromFile);
  9900.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9901. }
  9902.  
  9903.  
  9904. VW_INLINE CVisioShape FAR CVisioPage::InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags)
  9905. {
  9906.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9907.     IVShape FAR *lpRet= NULL;
  9908.     CHECK_IP(GetIP(), CVisioPage, InsertObject);
  9909.     if (NULL!=GetIP())
  9910.         hr= GetIP()->InsertObject(ClassOrProgID, Flags, &lpRet);
  9911.     CHECK_HRESULT(hr, CVisioPage, InsertObject);
  9912.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9913. }
  9914.  
  9915.  
  9916. VW_INLINE CVisioWindow FAR CVisioPage::OpenDrawWindow()
  9917. {
  9918.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9919.     IVWindow FAR *lpRet= NULL;
  9920.     CHECK_IP(GetIP(), CVisioPage, OpenDrawWindow);
  9921.     if (NULL!=GetIP())
  9922.         hr= GetIP()->OpenDrawWindow(&lpRet);
  9923.     CHECK_HRESULT(hr, CVisioPage, OpenDrawWindow);
  9924.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9925. }
  9926.  
  9927.  
  9928. VW_INLINE short CVisioPage::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray)
  9929. {
  9930.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9931.     short ret= 0;
  9932.     CHECK_IP(GetIP(), CVisioPage, DropMany);
  9933.     if (NULL!=GetIP())
  9934.         hr= GetIP()->DropMany(ObjectsToInstance, xyArray, IDArray, &ret);
  9935.     CHECK_HRESULT(hr, CVisioPage, DropMany);
  9936.     return ret;
  9937. }
  9938.  
  9939.  
  9940. VW_INLINE void CVisioPage::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  9941. {
  9942.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9943.     CHECK_IP(GetIP(), CVisioPage, GetFormulas);
  9944.     if (NULL!=GetIP())
  9945.         hr= GetIP()->GetFormulas(SID_SRCStream, formulaArray);
  9946.     CHECK_HRESULT(hr, CVisioPage, GetFormulas);
  9947. }
  9948.  
  9949.  
  9950. VW_INLINE void CVisioPage::GetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  9951. {
  9952.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9953.     CHECK_IP(GetIP(), CVisioPage, GetResults);
  9954.     if (NULL!=GetIP())
  9955.         hr= GetIP()->GetResults(SID_SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  9956.     CHECK_HRESULT(hr, CVisioPage, GetResults);
  9957. }
  9958.  
  9959.  
  9960. VW_INLINE short CVisioPage::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags)
  9961. {
  9962.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9963.     short ret= 0;
  9964.     CHECK_IP(GetIP(), CVisioPage, SetFormulas);
  9965.     if (NULL!=GetIP())
  9966.         hr= GetIP()->SetFormulas(SID_SRCStream, formulaArray, Flags, &ret);
  9967.     CHECK_HRESULT(hr, CVisioPage, SetFormulas);
  9968.     return ret;
  9969. }
  9970.  
  9971.  
  9972. VW_INLINE short CVisioPage::SetResults(/*short*/ SAFEARRAY FAR * FAR *SID_SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags)
  9973. {
  9974.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9975.     short ret= 0;
  9976.     CHECK_IP(GetIP(), CVisioPage, SetResults);
  9977.     if (NULL!=GetIP())
  9978.         hr= GetIP()->SetResults(SID_SRCStream, UnitsNamesOrCodes, resultArray, Flags, &ret);
  9979.     CHECK_HRESULT(hr, CVisioPage, SetResults);
  9980.     return ret;
  9981. }
  9982.  
  9983.  
  9984. VW_INLINE CVisioConnects FAR CVisioPage::Connects()
  9985. {
  9986.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9987.     IVConnects FAR *lpRet= NULL;
  9988.     CHECK_IP(GetIP(), CVisioPage, Connects);
  9989.     if (NULL!=GetIP())
  9990.         hr= GetIP()->get_Connects(&lpRet);
  9991.     CHECK_HRESULT(hr, CVisioPage, Connects);
  9992.     return CVisioConnects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  9993. }
  9994.  
  9995.  
  9996. VW_INLINE VARIANT_HELPER_CLASS FAR CVisioPage::getBackPage()
  9997. {
  9998.     HRESULT hr= VW_INTERFACE_NOT_SET;
  9999.     VARIANT ret;
  10000.     VariantInit(&ret);
  10001.     CHECK_IP(GetIP(), CVisioPage, getBackPage);
  10002.     if (NULL!=GetIP())
  10003.         hr= GetIP()->get_BackPage(&ret);
  10004.     CHECK_HRESULT(hr, CVisioPage, getBackPage);
  10005.     return VARIANT_HELPER_CLASS(ret);
  10006. }
  10007.  
  10008.  
  10009. VW_INLINE void CVisioPage::putBackPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01)
  10010. {
  10011.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10012.     CHECK_IP(GetIP(), CVisioPage, putBackPage);
  10013.     if (NULL!=GetIP())
  10014.         hr= GetIP()->put_BackPage(param01);
  10015.     CHECK_HRESULT(hr, CVisioPage, putBackPage);
  10016. }
  10017.  
  10018.  
  10019. VW_INLINE void CVisioPage::Layout()
  10020. {
  10021.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10022.     CHECK_IP(GetIP(), CVisioPage, Layout);
  10023.     if (NULL!=GetIP())
  10024.         hr= GetIP()->Layout();
  10025.     CHECK_HRESULT(hr, CVisioPage, Layout);
  10026. }
  10027.  
  10028.  
  10029. VW_INLINE void CVisioPage::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  10030. {
  10031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10032.     CHECK_IP(GetIP(), CVisioPage, BoundingBox);
  10033.     if (NULL!=GetIP())
  10034.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  10035.     CHECK_HRESULT(hr, CVisioPage, BoundingBox);
  10036. }
  10037.  
  10038.  
  10039. VW_INLINE short CVisioPage::ID()
  10040. {
  10041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10042.     short ret= 0;
  10043.     CHECK_IP(GetIP(), CVisioPage, ID);
  10044.     if (NULL!=GetIP())
  10045.         hr= GetIP()->get_ID(&ret);
  10046.     CHECK_HRESULT(hr, CVisioPage, ID);
  10047.     return ret;
  10048. }
  10049.  
  10050.  
  10051. VW_INLINE CVisioOLEObjects FAR CVisioPage::OLEObjects()
  10052. {
  10053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10054.     IVOLEObjects FAR *lpRet= NULL;
  10055.     CHECK_IP(GetIP(), CVisioPage, OLEObjects);
  10056.     if (NULL!=GetIP())
  10057.         hr= GetIP()->get_OLEObjects(&lpRet);
  10058.     CHECK_HRESULT(hr, CVisioPage, OLEObjects);
  10059.     return CVisioOLEObjects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10060. }
  10061.  
  10062.  
  10063.  
  10064. //  ***************************************************************************
  10065. //  Implementation of class CVisioPages
  10066.  
  10067. VW_INLINE CVisioApplication FAR CVisioPages::Application()
  10068. {
  10069.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10070.     IVApplication FAR *lpRet= NULL;
  10071.     CHECK_IP(GetIP(), CVisioPages, Application);
  10072.     if (NULL!=GetIP())
  10073.         hr= GetIP()->get_Application(&lpRet);
  10074.     CHECK_HRESULT(hr, CVisioPages, Application);
  10075.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10076. }
  10077.  
  10078.  
  10079. VW_INLINE short CVisioPages::ObjectType()
  10080. {
  10081.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10082.     short ret= 0;
  10083.     CHECK_IP(GetIP(), CVisioPages, ObjectType);
  10084.     if (NULL!=GetIP())
  10085.         hr= GetIP()->get_ObjectType(&ret);
  10086.     CHECK_HRESULT(hr, CVisioPages, ObjectType);
  10087.     return ret;
  10088. }
  10089.  
  10090.  
  10091. VW_INLINE CVisioPage FAR CVisioPages::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  10092. {
  10093.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10094.     IVPage FAR *lpRet= NULL;
  10095.     CHECK_IP(GetIP(), CVisioPages, Item);
  10096.     if (NULL!=GetIP())
  10097.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  10098.     CHECK_HRESULT(hr, CVisioPages, Item);
  10099.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10100. }
  10101.  
  10102.  
  10103. VW_INLINE short CVisioPages::Count()
  10104. {
  10105.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10106.     short ret= 0;
  10107.     CHECK_IP(GetIP(), CVisioPages, Count);
  10108.     if (NULL!=GetIP())
  10109.         hr= GetIP()->get_Count(&ret);
  10110.     CHECK_HRESULT(hr, CVisioPages, Count);
  10111.     return ret;
  10112. }
  10113.  
  10114.  
  10115. VW_INLINE CVisioPage FAR CVisioPages::Add()
  10116. {
  10117.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10118.     IVPage FAR *lpRet= NULL;
  10119.     CHECK_IP(GetIP(), CVisioPages, Add);
  10120.     if (NULL!=GetIP())
  10121.         hr= GetIP()->Add(&lpRet);
  10122.     CHECK_HRESULT(hr, CVisioPages, Add);
  10123.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10124. }
  10125.  
  10126.  
  10127. VW_INLINE CVisioDocument FAR CVisioPages::Document()
  10128. {
  10129.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10130.     IVDocument FAR *lpRet= NULL;
  10131.     CHECK_IP(GetIP(), CVisioPages, Document);
  10132.     if (NULL!=GetIP())
  10133.         hr= GetIP()->get_Document(&lpRet);
  10134.     CHECK_HRESULT(hr, CVisioPages, Document);
  10135.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10136. }
  10137.  
  10138.  
  10139. VW_INLINE short CVisioPages::Stat()
  10140. {
  10141.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10142.     short ret= 0;
  10143.     CHECK_IP(GetIP(), CVisioPages, Stat);
  10144.     if (NULL!=GetIP())
  10145.         hr= GetIP()->get_Stat(&ret);
  10146.     CHECK_HRESULT(hr, CVisioPages, Stat);
  10147.     return ret;
  10148. }
  10149.  
  10150.  
  10151. VW_INLINE CVisioEventList FAR CVisioPages::EventList()
  10152. {
  10153.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10154.     IVEventList FAR *lpRet= NULL;
  10155.     CHECK_IP(GetIP(), CVisioPages, EventList);
  10156.     if (NULL!=GetIP())
  10157.         hr= GetIP()->get_EventList(&lpRet);
  10158.     CHECK_HRESULT(hr, CVisioPages, EventList);
  10159.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10160. }
  10161.  
  10162.  
  10163. VW_INLINE short CVisioPages::PersistsEvents()
  10164. {
  10165.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10166.     short ret= 0;
  10167.     CHECK_IP(GetIP(), CVisioPages, PersistsEvents);
  10168.     if (NULL!=GetIP())
  10169.         hr= GetIP()->get_PersistsEvents(&ret);
  10170.     CHECK_HRESULT(hr, CVisioPages, PersistsEvents);
  10171.     return ret;
  10172. }
  10173.  
  10174.  
  10175. VW_INLINE void CVisioPages::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  10176. {
  10177.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10178.     CHECK_IP(GetIP(), CVisioPages, GetNames);
  10179.     if (NULL!=GetIP())
  10180.         hr= GetIP()->GetNames(NameArray);
  10181.     CHECK_HRESULT(hr, CVisioPages, GetNames);
  10182. }
  10183.  
  10184.  
  10185.  
  10186. //  ***************************************************************************
  10187. //  Implementation of class CVisioSelection
  10188.  
  10189. VW_INLINE CVisioApplication FAR CVisioSelection::Application()
  10190. {
  10191.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10192.     IVApplication FAR *lpRet= NULL;
  10193.     CHECK_IP(GetIP(), CVisioSelection, Application);
  10194.     if (NULL!=GetIP())
  10195.         hr= GetIP()->get_Application(&lpRet);
  10196.     CHECK_HRESULT(hr, CVisioSelection, Application);
  10197.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10198. }
  10199.  
  10200.  
  10201. VW_INLINE short CVisioSelection::Stat()
  10202. {
  10203.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10204.     short ret= 0;
  10205.     CHECK_IP(GetIP(), CVisioSelection, Stat);
  10206.     if (NULL!=GetIP())
  10207.         hr= GetIP()->get_Stat(&ret);
  10208.     CHECK_HRESULT(hr, CVisioSelection, Stat);
  10209.     return ret;
  10210. }
  10211.  
  10212.  
  10213. VW_INLINE short CVisioSelection::ObjectType()
  10214. {
  10215.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10216.     short ret= 0;
  10217.     CHECK_IP(GetIP(), CVisioSelection, ObjectType);
  10218.     if (NULL!=GetIP())
  10219.         hr= GetIP()->get_ObjectType(&ret);
  10220.     CHECK_HRESULT(hr, CVisioSelection, ObjectType);
  10221.     return ret;
  10222. }
  10223.  
  10224.  
  10225. VW_INLINE CVisioShape FAR CVisioSelection::Item(short Index)
  10226. {
  10227.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10228.     IVShape FAR *lpRet= NULL;
  10229.     CHECK_IP(GetIP(), CVisioSelection, Item);
  10230.     if (NULL!=GetIP())
  10231.         hr= GetIP()->get_Item(Index, &lpRet);
  10232.     CHECK_HRESULT(hr, CVisioSelection, Item);
  10233.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10234. }
  10235.  
  10236.  
  10237. VW_INLINE short CVisioSelection::Count()
  10238. {
  10239.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10240.     short ret= 0;
  10241.     CHECK_IP(GetIP(), CVisioSelection, Count);
  10242.     if (NULL!=GetIP())
  10243.         hr= GetIP()->get_Count(&ret);
  10244.     CHECK_HRESULT(hr, CVisioSelection, Count);
  10245.     return ret;
  10246. }
  10247.  
  10248.  
  10249. VW_INLINE void CVisioSelection::Export(BSTR_HELPER_CLASS FAR &FileName)
  10250. {
  10251.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10252.     CHECK_IP(GetIP(), CVisioSelection, Export);
  10253.     if (NULL!=GetIP())
  10254.         hr= GetIP()->Export(FileName);
  10255.     CHECK_HRESULT(hr, CVisioSelection, Export);
  10256. }
  10257.  
  10258.  
  10259. VW_INLINE CVisioDocument FAR CVisioSelection::Document()
  10260. {
  10261.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10262.     IVDocument FAR *lpRet= NULL;
  10263.     CHECK_IP(GetIP(), CVisioSelection, Document);
  10264.     if (NULL!=GetIP())
  10265.         hr= GetIP()->get_Document(&lpRet);
  10266.     CHECK_HRESULT(hr, CVisioSelection, Document);
  10267.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10268. }
  10269.  
  10270.  
  10271. VW_INLINE CVisioPage FAR CVisioSelection::ContainingPage()
  10272. {
  10273.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10274.     IVPage FAR *lpRet= NULL;
  10275.     CHECK_IP(GetIP(), CVisioSelection, ContainingPage);
  10276.     if (NULL!=GetIP())
  10277.         hr= GetIP()->get_ContainingPage(&lpRet);
  10278.     CHECK_HRESULT(hr, CVisioSelection, ContainingPage);
  10279.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10280. }
  10281.  
  10282.  
  10283. VW_INLINE CVisioMaster FAR CVisioSelection::ContainingMaster()
  10284. {
  10285.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10286.     IVMaster FAR *lpRet= NULL;
  10287.     CHECK_IP(GetIP(), CVisioSelection, ContainingMaster);
  10288.     if (NULL!=GetIP())
  10289.         hr= GetIP()->get_ContainingMaster(&lpRet);
  10290.     CHECK_HRESULT(hr, CVisioSelection, ContainingMaster);
  10291.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10292. }
  10293.  
  10294.  
  10295. VW_INLINE CVisioShape FAR CVisioSelection::ContainingShape()
  10296. {
  10297.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10298.     IVShape FAR *lpRet= NULL;
  10299.     CHECK_IP(GetIP(), CVisioSelection, ContainingShape);
  10300.     if (NULL!=GetIP())
  10301.         hr= GetIP()->get_ContainingShape(&lpRet);
  10302.     CHECK_HRESULT(hr, CVisioSelection, ContainingShape);
  10303.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10304. }
  10305.  
  10306.  
  10307. VW_INLINE void CVisioSelection::BringForward()
  10308. {
  10309.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10310.     CHECK_IP(GetIP(), CVisioSelection, BringForward);
  10311.     if (NULL!=GetIP())
  10312.         hr= GetIP()->BringForward();
  10313.     CHECK_HRESULT(hr, CVisioSelection, BringForward);
  10314. }
  10315.  
  10316.  
  10317. VW_INLINE void CVisioSelection::BringToFront()
  10318. {
  10319.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10320.     CHECK_IP(GetIP(), CVisioSelection, BringToFront);
  10321.     if (NULL!=GetIP())
  10322.         hr= GetIP()->BringToFront();
  10323.     CHECK_HRESULT(hr, CVisioSelection, BringToFront);
  10324. }
  10325.  
  10326.  
  10327. VW_INLINE void CVisioSelection::SendBackward()
  10328. {
  10329.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10330.     CHECK_IP(GetIP(), CVisioSelection, SendBackward);
  10331.     if (NULL!=GetIP())
  10332.         hr= GetIP()->SendBackward();
  10333.     CHECK_HRESULT(hr, CVisioSelection, SendBackward);
  10334. }
  10335.  
  10336.  
  10337. VW_INLINE void CVisioSelection::SendToBack()
  10338. {
  10339.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10340.     CHECK_IP(GetIP(), CVisioSelection, SendToBack);
  10341.     if (NULL!=GetIP())
  10342.         hr= GetIP()->SendToBack();
  10343.     CHECK_HRESULT(hr, CVisioSelection, SendToBack);
  10344. }
  10345.  
  10346.  
  10347. VW_INLINE BSTR_HELPER_CLASS FAR CVisioSelection::getStyle()
  10348. {
  10349.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10350.     BSTR ret= 0;
  10351.     CHECK_IP(GetIP(), CVisioSelection, getStyle);
  10352.     if (NULL!=GetIP())
  10353.         hr= GetIP()->get_Style(&ret);
  10354.     CHECK_HRESULT(hr, CVisioSelection, getStyle);
  10355.     return BSTR_HELPER_CLASS(ret, TRUE);
  10356. }
  10357.  
  10358.  
  10359. VW_INLINE void CVisioSelection::putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10360. {
  10361.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10362.     CHECK_IP(GetIP(), CVisioSelection, putStyle);
  10363.     if (NULL!=GetIP())
  10364.         hr= GetIP()->put_Style(param01);
  10365.     CHECK_HRESULT(hr, CVisioSelection, putStyle);
  10366. }
  10367.  
  10368.  
  10369. VW_INLINE void CVisioSelection::StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10370. {
  10371.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10372.     CHECK_IP(GetIP(), CVisioSelection, StyleKeepFmt);
  10373.     if (NULL!=GetIP())
  10374.         hr= GetIP()->put_StyleKeepFmt(param01);
  10375.     CHECK_HRESULT(hr, CVisioSelection, StyleKeepFmt);
  10376. }
  10377.  
  10378.  
  10379. VW_INLINE BSTR_HELPER_CLASS FAR CVisioSelection::getLineStyle()
  10380. {
  10381.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10382.     BSTR ret= 0;
  10383.     CHECK_IP(GetIP(), CVisioSelection, getLineStyle);
  10384.     if (NULL!=GetIP())
  10385.         hr= GetIP()->get_LineStyle(&ret);
  10386.     CHECK_HRESULT(hr, CVisioSelection, getLineStyle);
  10387.     return BSTR_HELPER_CLASS(ret, TRUE);
  10388. }
  10389.  
  10390.  
  10391. VW_INLINE void CVisioSelection::putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10392. {
  10393.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10394.     CHECK_IP(GetIP(), CVisioSelection, putLineStyle);
  10395.     if (NULL!=GetIP())
  10396.         hr= GetIP()->put_LineStyle(param01);
  10397.     CHECK_HRESULT(hr, CVisioSelection, putLineStyle);
  10398. }
  10399.  
  10400.  
  10401. VW_INLINE void CVisioSelection::LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10402. {
  10403.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10404.     CHECK_IP(GetIP(), CVisioSelection, LineStyleKeepFmt);
  10405.     if (NULL!=GetIP())
  10406.         hr= GetIP()->put_LineStyleKeepFmt(param01);
  10407.     CHECK_HRESULT(hr, CVisioSelection, LineStyleKeepFmt);
  10408. }
  10409.  
  10410.  
  10411. VW_INLINE BSTR_HELPER_CLASS FAR CVisioSelection::getFillStyle()
  10412. {
  10413.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10414.     BSTR ret= 0;
  10415.     CHECK_IP(GetIP(), CVisioSelection, getFillStyle);
  10416.     if (NULL!=GetIP())
  10417.         hr= GetIP()->get_FillStyle(&ret);
  10418.     CHECK_HRESULT(hr, CVisioSelection, getFillStyle);
  10419.     return BSTR_HELPER_CLASS(ret, TRUE);
  10420. }
  10421.  
  10422.  
  10423. VW_INLINE void CVisioSelection::putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10424. {
  10425.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10426.     CHECK_IP(GetIP(), CVisioSelection, putFillStyle);
  10427.     if (NULL!=GetIP())
  10428.         hr= GetIP()->put_FillStyle(param01);
  10429.     CHECK_HRESULT(hr, CVisioSelection, putFillStyle);
  10430. }
  10431.  
  10432.  
  10433. VW_INLINE void CVisioSelection::FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10434. {
  10435.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10436.     CHECK_IP(GetIP(), CVisioSelection, FillStyleKeepFmt);
  10437.     if (NULL!=GetIP())
  10438.         hr= GetIP()->put_FillStyleKeepFmt(param01);
  10439.     CHECK_HRESULT(hr, CVisioSelection, FillStyleKeepFmt);
  10440. }
  10441.  
  10442.  
  10443. VW_INLINE BSTR_HELPER_CLASS FAR CVisioSelection::getTextStyle()
  10444. {
  10445.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10446.     BSTR ret= 0;
  10447.     CHECK_IP(GetIP(), CVisioSelection, getTextStyle);
  10448.     if (NULL!=GetIP())
  10449.         hr= GetIP()->get_TextStyle(&ret);
  10450.     CHECK_HRESULT(hr, CVisioSelection, getTextStyle);
  10451.     return BSTR_HELPER_CLASS(ret, TRUE);
  10452. }
  10453.  
  10454.  
  10455. VW_INLINE void CVisioSelection::putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10456. {
  10457.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10458.     CHECK_IP(GetIP(), CVisioSelection, putTextStyle);
  10459.     if (NULL!=GetIP())
  10460.         hr= GetIP()->put_TextStyle(param01);
  10461.     CHECK_HRESULT(hr, CVisioSelection, putTextStyle);
  10462. }
  10463.  
  10464.  
  10465. VW_INLINE void CVisioSelection::TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10466. {
  10467.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10468.     CHECK_IP(GetIP(), CVisioSelection, TextStyleKeepFmt);
  10469.     if (NULL!=GetIP())
  10470.         hr= GetIP()->put_TextStyleKeepFmt(param01);
  10471.     CHECK_HRESULT(hr, CVisioSelection, TextStyleKeepFmt);
  10472. }
  10473.  
  10474.  
  10475. VW_INLINE void CVisioSelection::Combine()
  10476. {
  10477.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10478.     CHECK_IP(GetIP(), CVisioSelection, Combine);
  10479.     if (NULL!=GetIP())
  10480.         hr= GetIP()->Combine();
  10481.     CHECK_HRESULT(hr, CVisioSelection, Combine);
  10482. }
  10483.  
  10484.  
  10485. VW_INLINE void CVisioSelection::Fragment()
  10486. {
  10487.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10488.     CHECK_IP(GetIP(), CVisioSelection, Fragment);
  10489.     if (NULL!=GetIP())
  10490.         hr= GetIP()->Fragment();
  10491.     CHECK_HRESULT(hr, CVisioSelection, Fragment);
  10492. }
  10493.  
  10494.  
  10495. VW_INLINE void CVisioSelection::Intersect()
  10496. {
  10497.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10498.     CHECK_IP(GetIP(), CVisioSelection, Intersect);
  10499.     if (NULL!=GetIP())
  10500.         hr= GetIP()->Intersect();
  10501.     CHECK_HRESULT(hr, CVisioSelection, Intersect);
  10502. }
  10503.  
  10504.  
  10505. VW_INLINE void CVisioSelection::Subtract()
  10506. {
  10507.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10508.     CHECK_IP(GetIP(), CVisioSelection, Subtract);
  10509.     if (NULL!=GetIP())
  10510.         hr= GetIP()->Subtract();
  10511.     CHECK_HRESULT(hr, CVisioSelection, Subtract);
  10512. }
  10513.  
  10514.  
  10515. VW_INLINE void CVisioSelection::Union()
  10516. {
  10517.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10518.     CHECK_IP(GetIP(), CVisioSelection, Union);
  10519.     if (NULL!=GetIP())
  10520.         hr= GetIP()->Union();
  10521.     CHECK_HRESULT(hr, CVisioSelection, Union);
  10522. }
  10523.  
  10524.  
  10525. VW_INLINE void CVisioSelection::FlipHorizontal()
  10526. {
  10527.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10528.     CHECK_IP(GetIP(), CVisioSelection, FlipHorizontal);
  10529.     if (NULL!=GetIP())
  10530.         hr= GetIP()->FlipHorizontal();
  10531.     CHECK_HRESULT(hr, CVisioSelection, FlipHorizontal);
  10532. }
  10533.  
  10534.  
  10535. VW_INLINE void CVisioSelection::FlipVertical()
  10536. {
  10537.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10538.     CHECK_IP(GetIP(), CVisioSelection, FlipVertical);
  10539.     if (NULL!=GetIP())
  10540.         hr= GetIP()->FlipVertical();
  10541.     CHECK_HRESULT(hr, CVisioSelection, FlipVertical);
  10542. }
  10543.  
  10544.  
  10545. VW_INLINE void CVisioSelection::ReverseEnds()
  10546. {
  10547.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10548.     CHECK_IP(GetIP(), CVisioSelection, ReverseEnds);
  10549.     if (NULL!=GetIP())
  10550.         hr= GetIP()->ReverseEnds();
  10551.     CHECK_HRESULT(hr, CVisioSelection, ReverseEnds);
  10552. }
  10553.  
  10554.  
  10555. VW_INLINE void CVisioSelection::Rotate90()
  10556. {
  10557.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10558.     CHECK_IP(GetIP(), CVisioSelection, Rotate90);
  10559.     if (NULL!=GetIP())
  10560.         hr= GetIP()->Rotate90();
  10561.     CHECK_HRESULT(hr, CVisioSelection, Rotate90);
  10562. }
  10563.  
  10564.  
  10565. VW_INLINE void CVisioSelection::Copy()
  10566. {
  10567.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10568.     CHECK_IP(GetIP(), CVisioSelection, Copy);
  10569.     if (NULL!=GetIP())
  10570.         hr= GetIP()->Copy();
  10571.     CHECK_HRESULT(hr, CVisioSelection, Copy);
  10572. }
  10573.  
  10574.  
  10575. VW_INLINE void CVisioSelection::Cut()
  10576. {
  10577.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10578.     CHECK_IP(GetIP(), CVisioSelection, Cut);
  10579.     if (NULL!=GetIP())
  10580.         hr= GetIP()->Cut();
  10581.     CHECK_HRESULT(hr, CVisioSelection, Cut);
  10582. }
  10583.  
  10584.  
  10585. VW_INLINE void CVisioSelection::Delete()
  10586. {
  10587.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10588.     CHECK_IP(GetIP(), CVisioSelection, Delete);
  10589.     if (NULL!=GetIP())
  10590.         hr= GetIP()->Delete();
  10591.     CHECK_HRESULT(hr, CVisioSelection, Delete);
  10592. }
  10593.  
  10594.  
  10595. VW_INLINE void CVisioSelection::Duplicate()
  10596. {
  10597.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10598.     CHECK_IP(GetIP(), CVisioSelection, Duplicate);
  10599.     if (NULL!=GetIP())
  10600.         hr= GetIP()->Duplicate();
  10601.     CHECK_HRESULT(hr, CVisioSelection, Duplicate);
  10602. }
  10603.  
  10604.  
  10605. VW_INLINE void CVisioSelection::Group()
  10606. {
  10607.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10608.     CHECK_IP(GetIP(), CVisioSelection, Group);
  10609.     if (NULL!=GetIP())
  10610.         hr= GetIP()->Group();
  10611.     CHECK_HRESULT(hr, CVisioSelection, Group);
  10612. }
  10613.  
  10614.  
  10615. VW_INLINE void CVisioSelection::ConvertToGroup()
  10616. {
  10617.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10618.     CHECK_IP(GetIP(), CVisioSelection, ConvertToGroup);
  10619.     if (NULL!=GetIP())
  10620.         hr= GetIP()->ConvertToGroup();
  10621.     CHECK_HRESULT(hr, CVisioSelection, ConvertToGroup);
  10622. }
  10623.  
  10624.  
  10625. VW_INLINE void CVisioSelection::Ungroup()
  10626. {
  10627.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10628.     CHECK_IP(GetIP(), CVisioSelection, Ungroup);
  10629.     if (NULL!=GetIP())
  10630.         hr= GetIP()->Ungroup();
  10631.     CHECK_HRESULT(hr, CVisioSelection, Ungroup);
  10632. }
  10633.  
  10634.  
  10635. VW_INLINE void CVisioSelection::SelectAll()
  10636. {
  10637.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10638.     CHECK_IP(GetIP(), CVisioSelection, SelectAll);
  10639.     if (NULL!=GetIP())
  10640.         hr= GetIP()->SelectAll();
  10641.     CHECK_HRESULT(hr, CVisioSelection, SelectAll);
  10642. }
  10643.  
  10644.  
  10645. VW_INLINE void CVisioSelection::DeselectAll()
  10646. {
  10647.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10648.     CHECK_IP(GetIP(), CVisioSelection, DeselectAll);
  10649.     if (NULL!=GetIP())
  10650.         hr= GetIP()->DeselectAll();
  10651.     CHECK_HRESULT(hr, CVisioSelection, DeselectAll);
  10652. }
  10653.  
  10654.  
  10655. VW_INLINE void CVisioSelection::Select(CVisioShape FAR &SheetObject, short SelectAction)
  10656. {
  10657.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10658.     CHECK_IP(GetIP(), CVisioSelection, Select);
  10659.     if (NULL!=GetIP())
  10660.         hr= GetIP()->Select(SheetObject, SelectAction);
  10661.     CHECK_HRESULT(hr, CVisioSelection, Select);
  10662. }
  10663.  
  10664.  
  10665. VW_INLINE CVisioEventList FAR CVisioSelection::EventList()
  10666. {
  10667.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10668.     IVEventList FAR *lpRet= NULL;
  10669.     CHECK_IP(GetIP(), CVisioSelection, EventList);
  10670.     if (NULL!=GetIP())
  10671.         hr= GetIP()->get_EventList(&lpRet);
  10672.     CHECK_HRESULT(hr, CVisioSelection, EventList);
  10673.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10674. }
  10675.  
  10676.  
  10677. VW_INLINE short CVisioSelection::PersistsEvents()
  10678. {
  10679.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10680.     short ret= 0;
  10681.     CHECK_IP(GetIP(), CVisioSelection, PersistsEvents);
  10682.     if (NULL!=GetIP())
  10683.         hr= GetIP()->get_PersistsEvents(&ret);
  10684.     CHECK_HRESULT(hr, CVisioSelection, PersistsEvents);
  10685.     return ret;
  10686. }
  10687.  
  10688.  
  10689. VW_INLINE void CVisioSelection::Trim()
  10690. {
  10691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10692.     CHECK_IP(GetIP(), CVisioSelection, Trim);
  10693.     if (NULL!=GetIP())
  10694.         hr= GetIP()->Trim();
  10695.     CHECK_HRESULT(hr, CVisioSelection, Trim);
  10696. }
  10697.  
  10698.  
  10699. VW_INLINE void CVisioSelection::Join()
  10700. {
  10701.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10702.     CHECK_IP(GetIP(), CVisioSelection, Join);
  10703.     if (NULL!=GetIP())
  10704.         hr= GetIP()->Join();
  10705.     CHECK_HRESULT(hr, CVisioSelection, Join);
  10706. }
  10707.  
  10708.  
  10709. VW_INLINE void CVisioSelection::FitCurve(double Tolerance, short Flags)
  10710. {
  10711.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10712.     CHECK_IP(GetIP(), CVisioSelection, FitCurve);
  10713.     if (NULL!=GetIP())
  10714.         hr= GetIP()->FitCurve(Tolerance, Flags);
  10715.     CHECK_HRESULT(hr, CVisioSelection, FitCurve);
  10716. }
  10717.  
  10718.  
  10719. VW_INLINE void CVisioSelection::Layout()
  10720. {
  10721.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10722.     CHECK_IP(GetIP(), CVisioSelection, Layout);
  10723.     if (NULL!=GetIP())
  10724.         hr= GetIP()->Layout();
  10725.     CHECK_HRESULT(hr, CVisioSelection, Layout);
  10726. }
  10727.  
  10728.  
  10729. VW_INLINE void CVisioSelection::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  10730. {
  10731.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10732.     CHECK_IP(GetIP(), CVisioSelection, BoundingBox);
  10733.     if (NULL!=GetIP())
  10734.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  10735.     CHECK_HRESULT(hr, CVisioSelection, BoundingBox);
  10736. }
  10737.  
  10738.  
  10739.  
  10740. //  ***************************************************************************
  10741. //  Implementation of class CVisioShape
  10742.  
  10743. VW_INLINE void CVisioShape::Group()
  10744. {
  10745.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10746.     CHECK_IP(GetIP(), CVisioShape, Group);
  10747.     if (NULL!=GetIP())
  10748.         hr= GetIP()->Group();
  10749.     CHECK_HRESULT(hr, CVisioShape, Group);
  10750. }
  10751.  
  10752.  
  10753. VW_INLINE void CVisioShape::BringForward()
  10754. {
  10755.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10756.     CHECK_IP(GetIP(), CVisioShape, BringForward);
  10757.     if (NULL!=GetIP())
  10758.         hr= GetIP()->BringForward();
  10759.     CHECK_HRESULT(hr, CVisioShape, BringForward);
  10760. }
  10761.  
  10762.  
  10763. VW_INLINE void CVisioShape::BringToFront()
  10764. {
  10765.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10766.     CHECK_IP(GetIP(), CVisioShape, BringToFront);
  10767.     if (NULL!=GetIP())
  10768.         hr= GetIP()->BringToFront();
  10769.     CHECK_HRESULT(hr, CVisioShape, BringToFront);
  10770. }
  10771.  
  10772.  
  10773. VW_INLINE void CVisioShape::ConvertToGroup()
  10774. {
  10775.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10776.     CHECK_IP(GetIP(), CVisioShape, ConvertToGroup);
  10777.     if (NULL!=GetIP())
  10778.         hr= GetIP()->ConvertToGroup();
  10779.     CHECK_HRESULT(hr, CVisioShape, ConvertToGroup);
  10780. }
  10781.  
  10782.  
  10783. VW_INLINE void CVisioShape::FlipHorizontal()
  10784. {
  10785.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10786.     CHECK_IP(GetIP(), CVisioShape, FlipHorizontal);
  10787.     if (NULL!=GetIP())
  10788.         hr= GetIP()->FlipHorizontal();
  10789.     CHECK_HRESULT(hr, CVisioShape, FlipHorizontal);
  10790. }
  10791.  
  10792.  
  10793. VW_INLINE void CVisioShape::FlipVertical()
  10794. {
  10795.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10796.     CHECK_IP(GetIP(), CVisioShape, FlipVertical);
  10797.     if (NULL!=GetIP())
  10798.         hr= GetIP()->FlipVertical();
  10799.     CHECK_HRESULT(hr, CVisioShape, FlipVertical);
  10800. }
  10801.  
  10802.  
  10803. VW_INLINE void CVisioShape::ReverseEnds()
  10804. {
  10805.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10806.     CHECK_IP(GetIP(), CVisioShape, ReverseEnds);
  10807.     if (NULL!=GetIP())
  10808.         hr= GetIP()->ReverseEnds();
  10809.     CHECK_HRESULT(hr, CVisioShape, ReverseEnds);
  10810. }
  10811.  
  10812.  
  10813. VW_INLINE void CVisioShape::SendBackward()
  10814. {
  10815.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10816.     CHECK_IP(GetIP(), CVisioShape, SendBackward);
  10817.     if (NULL!=GetIP())
  10818.         hr= GetIP()->SendBackward();
  10819.     CHECK_HRESULT(hr, CVisioShape, SendBackward);
  10820. }
  10821.  
  10822.  
  10823. VW_INLINE void CVisioShape::SendToBack()
  10824. {
  10825.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10826.     CHECK_IP(GetIP(), CVisioShape, SendToBack);
  10827.     if (NULL!=GetIP())
  10828.         hr= GetIP()->SendToBack();
  10829.     CHECK_HRESULT(hr, CVisioShape, SendToBack);
  10830. }
  10831.  
  10832.  
  10833. VW_INLINE void CVisioShape::Rotate90()
  10834. {
  10835.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10836.     CHECK_IP(GetIP(), CVisioShape, Rotate90);
  10837.     if (NULL!=GetIP())
  10838.         hr= GetIP()->Rotate90();
  10839.     CHECK_HRESULT(hr, CVisioShape, Rotate90);
  10840. }
  10841.  
  10842.  
  10843. VW_INLINE void CVisioShape::Ungroup()
  10844. {
  10845.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10846.     CHECK_IP(GetIP(), CVisioShape, Ungroup);
  10847.     if (NULL!=GetIP())
  10848.         hr= GetIP()->Ungroup();
  10849.     CHECK_HRESULT(hr, CVisioShape, Ungroup);
  10850. }
  10851.  
  10852.  
  10853. VW_INLINE CVisioDocument FAR CVisioShape::Document()
  10854. {
  10855.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10856.     IVDocument FAR *lpRet= NULL;
  10857.     CHECK_IP(GetIP(), CVisioShape, Document);
  10858.     if (NULL!=GetIP())
  10859.         hr= GetIP()->get_Document(&lpRet);
  10860.     CHECK_HRESULT(hr, CVisioShape, Document);
  10861.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10862. }
  10863.  
  10864.  
  10865. VW_INLINE IDispatch FAR *CVisioShape::Parent()
  10866. {
  10867.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10868.     IDispatch FAR *lpRet= NULL;
  10869.     CHECK_IP(GetIP(), CVisioShape, Parent);
  10870.     if (NULL!=GetIP())
  10871.         hr= GetIP()->get_Parent(&lpRet);
  10872.     CHECK_HRESULT(hr, CVisioShape, Parent);
  10873.     return lpRet;
  10874. }
  10875.  
  10876.  
  10877. VW_INLINE CVisioApplication FAR CVisioShape::Application()
  10878. {
  10879.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10880.     IVApplication FAR *lpRet= NULL;
  10881.     CHECK_IP(GetIP(), CVisioShape, Application);
  10882.     if (NULL!=GetIP())
  10883.         hr= GetIP()->get_Application(&lpRet);
  10884.     CHECK_HRESULT(hr, CVisioShape, Application);
  10885.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10886. }
  10887.  
  10888.  
  10889. VW_INLINE short CVisioShape::Stat()
  10890. {
  10891.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10892.     short ret= 0;
  10893.     CHECK_IP(GetIP(), CVisioShape, Stat);
  10894.     if (NULL!=GetIP())
  10895.         hr= GetIP()->get_Stat(&ret);
  10896.     CHECK_HRESULT(hr, CVisioShape, Stat);
  10897.     return ret;
  10898. }
  10899.  
  10900.  
  10901. VW_INLINE CVisioMaster FAR CVisioShape::Master()
  10902. {
  10903.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10904.     IVMaster FAR *lpRet= NULL;
  10905.     CHECK_IP(GetIP(), CVisioShape, Master);
  10906.     if (NULL!=GetIP())
  10907.         hr= GetIP()->get_Master(&lpRet);
  10908.     CHECK_HRESULT(hr, CVisioShape, Master);
  10909.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10910. }
  10911.  
  10912.  
  10913. VW_INLINE short CVisioShape::Type()
  10914. {
  10915.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10916.     short ret= 0;
  10917.     CHECK_IP(GetIP(), CVisioShape, Type);
  10918.     if (NULL!=GetIP())
  10919.         hr= GetIP()->get_Type(&ret);
  10920.     CHECK_HRESULT(hr, CVisioShape, Type);
  10921.     return ret;
  10922. }
  10923.  
  10924.  
  10925. VW_INLINE short CVisioShape::ObjectType()
  10926. {
  10927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10928.     short ret= 0;
  10929.     CHECK_IP(GetIP(), CVisioShape, ObjectType);
  10930.     if (NULL!=GetIP())
  10931.         hr= GetIP()->get_ObjectType(&ret);
  10932.     CHECK_HRESULT(hr, CVisioShape, ObjectType);
  10933.     return ret;
  10934. }
  10935.  
  10936.  
  10937. VW_INLINE CVisioCell FAR CVisioShape::Cells(BSTR_HELPER_CLASS FAR &CellName)
  10938. {
  10939.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10940.     IVCell FAR *lpRet= NULL;
  10941.     CHECK_IP(GetIP(), CVisioShape, Cells);
  10942.     if (NULL!=GetIP())
  10943.         hr= GetIP()->get_Cells(CellName, &lpRet);
  10944.     CHECK_HRESULT(hr, CVisioShape, Cells);
  10945.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10946. }
  10947.  
  10948.  
  10949. VW_INLINE CVisioCell FAR CVisioShape::CellsSRC(short Section, short Row, short Column)
  10950. {
  10951.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10952.     IVCell FAR *lpRet= NULL;
  10953.     CHECK_IP(GetIP(), CVisioShape, CellsSRC);
  10954.     if (NULL!=GetIP())
  10955.         hr= GetIP()->get_CellsSRC(Section, Row, Column, &lpRet);
  10956.     CHECK_HRESULT(hr, CVisioShape, CellsSRC);
  10957.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10958. }
  10959.  
  10960.  
  10961. VW_INLINE CVisioShapes FAR CVisioShape::Shapes()
  10962. {
  10963.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10964.     IVShapes FAR *lpRet= NULL;
  10965.     CHECK_IP(GetIP(), CVisioShape, Shapes);
  10966.     if (NULL!=GetIP())
  10967.         hr= GetIP()->get_Shapes(&lpRet);
  10968.     CHECK_HRESULT(hr, CVisioShape, Shapes);
  10969.     return CVisioShapes(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  10970. }
  10971.  
  10972.  
  10973. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getData1()
  10974. {
  10975.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10976.     BSTR ret= 0;
  10977.     CHECK_IP(GetIP(), CVisioShape, getData1);
  10978.     if (NULL!=GetIP())
  10979.         hr= GetIP()->get_Data1(&ret);
  10980.     CHECK_HRESULT(hr, CVisioShape, getData1);
  10981.     return BSTR_HELPER_CLASS(ret, TRUE);
  10982. }
  10983.  
  10984.  
  10985. VW_INLINE void CVisioShape::putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  10986. {
  10987.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10988.     CHECK_IP(GetIP(), CVisioShape, putData1);
  10989.     if (NULL!=GetIP())
  10990.         hr= GetIP()->put_Data1(param01);
  10991.     CHECK_HRESULT(hr, CVisioShape, putData1);
  10992. }
  10993.  
  10994.  
  10995. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getData2()
  10996. {
  10997.     HRESULT hr= VW_INTERFACE_NOT_SET;
  10998.     BSTR ret= 0;
  10999.     CHECK_IP(GetIP(), CVisioShape, getData2);
  11000.     if (NULL!=GetIP())
  11001.         hr= GetIP()->get_Data2(&ret);
  11002.     CHECK_HRESULT(hr, CVisioShape, getData2);
  11003.     return BSTR_HELPER_CLASS(ret, TRUE);
  11004. }
  11005.  
  11006.  
  11007. VW_INLINE void CVisioShape::putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11008. {
  11009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11010.     CHECK_IP(GetIP(), CVisioShape, putData2);
  11011.     if (NULL!=GetIP())
  11012.         hr= GetIP()->put_Data2(param01);
  11013.     CHECK_HRESULT(hr, CVisioShape, putData2);
  11014. }
  11015.  
  11016.  
  11017. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getData3()
  11018. {
  11019.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11020.     BSTR ret= 0;
  11021.     CHECK_IP(GetIP(), CVisioShape, getData3);
  11022.     if (NULL!=GetIP())
  11023.         hr= GetIP()->get_Data3(&ret);
  11024.     CHECK_HRESULT(hr, CVisioShape, getData3);
  11025.     return BSTR_HELPER_CLASS(ret, TRUE);
  11026. }
  11027.  
  11028.  
  11029. VW_INLINE void CVisioShape::putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11030. {
  11031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11032.     CHECK_IP(GetIP(), CVisioShape, putData3);
  11033.     if (NULL!=GetIP())
  11034.         hr= GetIP()->put_Data3(param01);
  11035.     CHECK_HRESULT(hr, CVisioShape, putData3);
  11036. }
  11037.  
  11038.  
  11039. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getHelp()
  11040. {
  11041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11042.     BSTR ret= 0;
  11043.     CHECK_IP(GetIP(), CVisioShape, getHelp);
  11044.     if (NULL!=GetIP())
  11045.         hr= GetIP()->get_Help(&ret);
  11046.     CHECK_HRESULT(hr, CVisioShape, getHelp);
  11047.     return BSTR_HELPER_CLASS(ret, TRUE);
  11048. }
  11049.  
  11050.  
  11051. VW_INLINE void CVisioShape::putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11052. {
  11053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11054.     CHECK_IP(GetIP(), CVisioShape, putHelp);
  11055.     if (NULL!=GetIP())
  11056.         hr= GetIP()->put_Help(param01);
  11057.     CHECK_HRESULT(hr, CVisioShape, putHelp);
  11058. }
  11059.  
  11060.  
  11061. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::NameID()
  11062. {
  11063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11064.     BSTR ret= 0;
  11065.     CHECK_IP(GetIP(), CVisioShape, NameID);
  11066.     if (NULL!=GetIP())
  11067.         hr= GetIP()->get_NameID(&ret);
  11068.     CHECK_HRESULT(hr, CVisioShape, NameID);
  11069.     return BSTR_HELPER_CLASS(ret, TRUE);
  11070. }
  11071.  
  11072.  
  11073. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getName()
  11074. {
  11075.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11076.     BSTR ret= 0;
  11077.     CHECK_IP(GetIP(), CVisioShape, getName);
  11078.     if (NULL!=GetIP())
  11079.         hr= GetIP()->get_Name(&ret);
  11080.     CHECK_HRESULT(hr, CVisioShape, getName);
  11081.     return BSTR_HELPER_CLASS(ret, TRUE);
  11082. }
  11083.  
  11084.  
  11085. VW_INLINE void CVisioShape::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11086. {
  11087.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11088.     CHECK_IP(GetIP(), CVisioShape, putName);
  11089.     if (NULL!=GetIP())
  11090.         hr= GetIP()->put_Name(param01);
  11091.     CHECK_HRESULT(hr, CVisioShape, putName);
  11092. }
  11093.  
  11094.  
  11095. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getText()
  11096. {
  11097.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11098.     BSTR ret= 0;
  11099.     CHECK_IP(GetIP(), CVisioShape, getText);
  11100.     if (NULL!=GetIP())
  11101.         hr= GetIP()->get_Text(&ret);
  11102.     CHECK_HRESULT(hr, CVisioShape, getText);
  11103.     return BSTR_HELPER_CLASS(ret, TRUE);
  11104. }
  11105.  
  11106.  
  11107. VW_INLINE void CVisioShape::putText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11108. {
  11109.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11110.     CHECK_IP(GetIP(), CVisioShape, putText);
  11111.     if (NULL!=GetIP())
  11112.         hr= GetIP()->put_Text(param01);
  11113.     CHECK_HRESULT(hr, CVisioShape, putText);
  11114. }
  11115.  
  11116.  
  11117. VW_INLINE long CVisioShape::CharCount()
  11118. {
  11119.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11120.     long ret= 0;
  11121.     CHECK_IP(GetIP(), CVisioShape, CharCount);
  11122.     if (NULL!=GetIP())
  11123.         hr= GetIP()->get_CharCount(&ret);
  11124.     CHECK_HRESULT(hr, CVisioShape, CharCount);
  11125.     return ret;
  11126. }
  11127.  
  11128.  
  11129. VW_INLINE CVisioCharacters FAR CVisioShape::Characters()
  11130. {
  11131.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11132.     IVCharacters FAR *lpRet= NULL;
  11133.     CHECK_IP(GetIP(), CVisioShape, Characters);
  11134.     if (NULL!=GetIP())
  11135.         hr= GetIP()->get_Characters(&lpRet);
  11136.     CHECK_HRESULT(hr, CVisioShape, Characters);
  11137.     return CVisioCharacters(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11138. }
  11139.  
  11140.  
  11141. VW_INLINE void CVisioShape::Copy()
  11142. {
  11143.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11144.     CHECK_IP(GetIP(), CVisioShape, Copy);
  11145.     if (NULL!=GetIP())
  11146.         hr= GetIP()->Copy();
  11147.     CHECK_HRESULT(hr, CVisioShape, Copy);
  11148. }
  11149.  
  11150.  
  11151. VW_INLINE void CVisioShape::Cut()
  11152. {
  11153.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11154.     CHECK_IP(GetIP(), CVisioShape, Cut);
  11155.     if (NULL!=GetIP())
  11156.         hr= GetIP()->Cut();
  11157.     CHECK_HRESULT(hr, CVisioShape, Cut);
  11158. }
  11159.  
  11160.  
  11161. VW_INLINE void CVisioShape::Delete()
  11162. {
  11163.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11164.     CHECK_IP(GetIP(), CVisioShape, Delete);
  11165.     if (NULL!=GetIP())
  11166.         hr= GetIP()->Delete();
  11167.     CHECK_HRESULT(hr, CVisioShape, Delete);
  11168. }
  11169.  
  11170.  
  11171. VW_INLINE void CVisioShape::Duplicate()
  11172. {
  11173.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11174.     CHECK_IP(GetIP(), CVisioShape, Duplicate);
  11175.     if (NULL!=GetIP())
  11176.         hr= GetIP()->Duplicate();
  11177.     CHECK_HRESULT(hr, CVisioShape, Duplicate);
  11178. }
  11179.  
  11180.  
  11181. VW_INLINE CVisioShape FAR CVisioShape::Drop(IUnknown FAR *ObjectToDrop, double xPos, double yPos)
  11182. {
  11183.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11184.     IVShape FAR *lpRet= NULL;
  11185.     CHECK_IP(GetIP(), CVisioShape, Drop);
  11186.     if (NULL!=GetIP())
  11187.         hr= GetIP()->Drop(ObjectToDrop, xPos, yPos, &lpRet);
  11188.     CHECK_HRESULT(hr, CVisioShape, Drop);
  11189.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11190. }
  11191.  
  11192.  
  11193. VW_INLINE short CVisioShape::getOneD()
  11194. {
  11195.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11196.     short ret= 0;
  11197.     CHECK_IP(GetIP(), CVisioShape, getOneD);
  11198.     if (NULL!=GetIP())
  11199.         hr= GetIP()->get_OneD(&ret);
  11200.     CHECK_HRESULT(hr, CVisioShape, getOneD);
  11201.     return ret;
  11202. }
  11203.  
  11204.  
  11205. VW_INLINE void CVisioShape::putOneD(VW_CONST short param01)
  11206. {
  11207.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11208.     CHECK_IP(GetIP(), CVisioShape, putOneD);
  11209.     if (NULL!=GetIP())
  11210.         hr= GetIP()->put_OneD(param01);
  11211.     CHECK_HRESULT(hr, CVisioShape, putOneD);
  11212. }
  11213.  
  11214.  
  11215. VW_INLINE short CVisioShape::GeometryCount()
  11216. {
  11217.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11218.     short ret= 0;
  11219.     CHECK_IP(GetIP(), CVisioShape, GeometryCount);
  11220.     if (NULL!=GetIP())
  11221.         hr= GetIP()->get_GeometryCount(&ret);
  11222.     CHECK_HRESULT(hr, CVisioShape, GeometryCount);
  11223.     return ret;
  11224. }
  11225.  
  11226.  
  11227. VW_INLINE short CVisioShape::RowCount(short Section)
  11228. {
  11229.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11230.     short ret= 0;
  11231.     CHECK_IP(GetIP(), CVisioShape, RowCount);
  11232.     if (NULL!=GetIP())
  11233.         hr= GetIP()->get_RowCount(Section, &ret);
  11234.     CHECK_HRESULT(hr, CVisioShape, RowCount);
  11235.     return ret;
  11236. }
  11237.  
  11238.  
  11239. VW_INLINE short CVisioShape::AddSection(short Section)
  11240. {
  11241.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11242.     short ret= 0;
  11243.     CHECK_IP(GetIP(), CVisioShape, AddSection);
  11244.     if (NULL!=GetIP())
  11245.         hr= GetIP()->AddSection(Section, &ret);
  11246.     CHECK_HRESULT(hr, CVisioShape, AddSection);
  11247.     return ret;
  11248. }
  11249.  
  11250.  
  11251. VW_INLINE void CVisioShape::DeleteSection(short Section)
  11252. {
  11253.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11254.     CHECK_IP(GetIP(), CVisioShape, DeleteSection);
  11255.     if (NULL!=GetIP())
  11256.         hr= GetIP()->DeleteSection(Section);
  11257.     CHECK_HRESULT(hr, CVisioShape, DeleteSection);
  11258. }
  11259.  
  11260.  
  11261. VW_INLINE short CVisioShape::AddRow(short Section, short Row, short RowTag)
  11262. {
  11263.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11264.     short ret= 0;
  11265.     CHECK_IP(GetIP(), CVisioShape, AddRow);
  11266.     if (NULL!=GetIP())
  11267.         hr= GetIP()->AddRow(Section, Row, RowTag, &ret);
  11268.     CHECK_HRESULT(hr, CVisioShape, AddRow);
  11269.     return ret;
  11270. }
  11271.  
  11272.  
  11273. VW_INLINE void CVisioShape::DeleteRow(short Section, short Row)
  11274. {
  11275.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11276.     CHECK_IP(GetIP(), CVisioShape, DeleteRow);
  11277.     if (NULL!=GetIP())
  11278.         hr= GetIP()->DeleteRow(Section, Row);
  11279.     CHECK_HRESULT(hr, CVisioShape, DeleteRow);
  11280. }
  11281.  
  11282.  
  11283. VW_INLINE short CVisioShape::RowsCellCount(short Section, short Row)
  11284. {
  11285.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11286.     short ret= 0;
  11287.     CHECK_IP(GetIP(), CVisioShape, RowsCellCount);
  11288.     if (NULL!=GetIP())
  11289.         hr= GetIP()->get_RowsCellCount(Section, Row, &ret);
  11290.     CHECK_HRESULT(hr, CVisioShape, RowsCellCount);
  11291.     return ret;
  11292. }
  11293.  
  11294.  
  11295. VW_INLINE short CVisioShape::getRowType(short Section, short Row)
  11296. {
  11297.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11298.     short ret= 0;
  11299.     CHECK_IP(GetIP(), CVisioShape, getRowType);
  11300.     if (NULL!=GetIP())
  11301.         hr= GetIP()->get_RowType(Section, Row, &ret);
  11302.     CHECK_HRESULT(hr, CVisioShape, getRowType);
  11303.     return ret;
  11304. }
  11305.  
  11306.  
  11307. VW_INLINE void CVisioShape::putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03)
  11308. {
  11309.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11310.     CHECK_IP(GetIP(), CVisioShape, putRowType);
  11311.     if (NULL!=GetIP())
  11312.         hr= GetIP()->put_RowType(Section, Row, param03);
  11313.     CHECK_HRESULT(hr, CVisioShape, putRowType);
  11314. }
  11315.  
  11316.  
  11317. VW_INLINE void CVisioShape::SetCenter(double xPos, double yPos)
  11318. {
  11319.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11320.     CHECK_IP(GetIP(), CVisioShape, SetCenter);
  11321.     if (NULL!=GetIP())
  11322.         hr= GetIP()->SetCenter(xPos, yPos);
  11323.     CHECK_HRESULT(hr, CVisioShape, SetCenter);
  11324. }
  11325.  
  11326.  
  11327. VW_INLINE void CVisioShape::SetBegin(double xPos, double yPos)
  11328. {
  11329.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11330.     CHECK_IP(GetIP(), CVisioShape, SetBegin);
  11331.     if (NULL!=GetIP())
  11332.         hr= GetIP()->SetBegin(xPos, yPos);
  11333.     CHECK_HRESULT(hr, CVisioShape, SetBegin);
  11334. }
  11335.  
  11336.  
  11337. VW_INLINE void CVisioShape::SetEnd(double xPos, double yPos)
  11338. {
  11339.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11340.     CHECK_IP(GetIP(), CVisioShape, SetEnd);
  11341.     if (NULL!=GetIP())
  11342.         hr= GetIP()->SetEnd(xPos, yPos);
  11343.     CHECK_HRESULT(hr, CVisioShape, SetEnd);
  11344. }
  11345.  
  11346.  
  11347. VW_INLINE CVisioConnects FAR CVisioShape::Connects()
  11348. {
  11349.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11350.     IVConnects FAR *lpRet= NULL;
  11351.     CHECK_IP(GetIP(), CVisioShape, Connects);
  11352.     if (NULL!=GetIP())
  11353.         hr= GetIP()->get_Connects(&lpRet);
  11354.     CHECK_HRESULT(hr, CVisioShape, Connects);
  11355.     return CVisioConnects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11356. }
  11357.  
  11358.  
  11359. VW_INLINE short CVisioShape::Index()
  11360. {
  11361.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11362.     short ret= 0;
  11363.     CHECK_IP(GetIP(), CVisioShape, Index);
  11364.     if (NULL!=GetIP())
  11365.         hr= GetIP()->get_Index(&ret);
  11366.     CHECK_HRESULT(hr, CVisioShape, Index);
  11367.     return ret;
  11368. }
  11369.  
  11370.  
  11371. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getStyle()
  11372. {
  11373.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11374.     BSTR ret= 0;
  11375.     CHECK_IP(GetIP(), CVisioShape, getStyle);
  11376.     if (NULL!=GetIP())
  11377.         hr= GetIP()->get_Style(&ret);
  11378.     CHECK_HRESULT(hr, CVisioShape, getStyle);
  11379.     return BSTR_HELPER_CLASS(ret, TRUE);
  11380. }
  11381.  
  11382.  
  11383. VW_INLINE void CVisioShape::putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11384. {
  11385.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11386.     CHECK_IP(GetIP(), CVisioShape, putStyle);
  11387.     if (NULL!=GetIP())
  11388.         hr= GetIP()->put_Style(param01);
  11389.     CHECK_HRESULT(hr, CVisioShape, putStyle);
  11390. }
  11391.  
  11392.  
  11393. VW_INLINE void CVisioShape::StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11394. {
  11395.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11396.     CHECK_IP(GetIP(), CVisioShape, StyleKeepFmt);
  11397.     if (NULL!=GetIP())
  11398.         hr= GetIP()->put_StyleKeepFmt(param01);
  11399.     CHECK_HRESULT(hr, CVisioShape, StyleKeepFmt);
  11400. }
  11401.  
  11402.  
  11403. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getLineStyle()
  11404. {
  11405.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11406.     BSTR ret= 0;
  11407.     CHECK_IP(GetIP(), CVisioShape, getLineStyle);
  11408.     if (NULL!=GetIP())
  11409.         hr= GetIP()->get_LineStyle(&ret);
  11410.     CHECK_HRESULT(hr, CVisioShape, getLineStyle);
  11411.     return BSTR_HELPER_CLASS(ret, TRUE);
  11412. }
  11413.  
  11414.  
  11415. VW_INLINE void CVisioShape::putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11416. {
  11417.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11418.     CHECK_IP(GetIP(), CVisioShape, putLineStyle);
  11419.     if (NULL!=GetIP())
  11420.         hr= GetIP()->put_LineStyle(param01);
  11421.     CHECK_HRESULT(hr, CVisioShape, putLineStyle);
  11422. }
  11423.  
  11424.  
  11425. VW_INLINE void CVisioShape::LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11426. {
  11427.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11428.     CHECK_IP(GetIP(), CVisioShape, LineStyleKeepFmt);
  11429.     if (NULL!=GetIP())
  11430.         hr= GetIP()->put_LineStyleKeepFmt(param01);
  11431.     CHECK_HRESULT(hr, CVisioShape, LineStyleKeepFmt);
  11432. }
  11433.  
  11434.  
  11435. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getFillStyle()
  11436. {
  11437.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11438.     BSTR ret= 0;
  11439.     CHECK_IP(GetIP(), CVisioShape, getFillStyle);
  11440.     if (NULL!=GetIP())
  11441.         hr= GetIP()->get_FillStyle(&ret);
  11442.     CHECK_HRESULT(hr, CVisioShape, getFillStyle);
  11443.     return BSTR_HELPER_CLASS(ret, TRUE);
  11444. }
  11445.  
  11446.  
  11447. VW_INLINE void CVisioShape::putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11448. {
  11449.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11450.     CHECK_IP(GetIP(), CVisioShape, putFillStyle);
  11451.     if (NULL!=GetIP())
  11452.         hr= GetIP()->put_FillStyle(param01);
  11453.     CHECK_HRESULT(hr, CVisioShape, putFillStyle);
  11454. }
  11455.  
  11456.  
  11457. VW_INLINE void CVisioShape::FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11458. {
  11459.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11460.     CHECK_IP(GetIP(), CVisioShape, FillStyleKeepFmt);
  11461.     if (NULL!=GetIP())
  11462.         hr= GetIP()->put_FillStyleKeepFmt(param01);
  11463.     CHECK_HRESULT(hr, CVisioShape, FillStyleKeepFmt);
  11464. }
  11465.  
  11466.  
  11467. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::getTextStyle()
  11468. {
  11469.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11470.     BSTR ret= 0;
  11471.     CHECK_IP(GetIP(), CVisioShape, getTextStyle);
  11472.     if (NULL!=GetIP())
  11473.         hr= GetIP()->get_TextStyle(&ret);
  11474.     CHECK_HRESULT(hr, CVisioShape, getTextStyle);
  11475.     return BSTR_HELPER_CLASS(ret, TRUE);
  11476. }
  11477.  
  11478.  
  11479. VW_INLINE void CVisioShape::putTextStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11480. {
  11481.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11482.     CHECK_IP(GetIP(), CVisioShape, putTextStyle);
  11483.     if (NULL!=GetIP())
  11484.         hr= GetIP()->put_TextStyle(param01);
  11485.     CHECK_HRESULT(hr, CVisioShape, putTextStyle);
  11486. }
  11487.  
  11488.  
  11489. VW_INLINE void CVisioShape::TextStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  11490. {
  11491.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11492.     CHECK_IP(GetIP(), CVisioShape, TextStyleKeepFmt);
  11493.     if (NULL!=GetIP())
  11494.         hr= GetIP()->put_TextStyleKeepFmt(param01);
  11495.     CHECK_HRESULT(hr, CVisioShape, TextStyleKeepFmt);
  11496. }
  11497.  
  11498.  
  11499. VW_INLINE void CVisioShape::Export(BSTR_HELPER_CLASS FAR &FileName)
  11500. {
  11501.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11502.     CHECK_IP(GetIP(), CVisioShape, Export);
  11503.     if (NULL!=GetIP())
  11504.         hr= GetIP()->Export(FileName);
  11505.     CHECK_HRESULT(hr, CVisioShape, Export);
  11506. }
  11507.  
  11508.  
  11509. VW_INLINE double CVisioShape::AreaIU()
  11510. {
  11511.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11512.     double ret= 0;
  11513.     CHECK_IP(GetIP(), CVisioShape, AreaIU);
  11514.     if (NULL!=GetIP())
  11515.         hr= GetIP()->get_AreaIU(&ret);
  11516.     CHECK_HRESULT(hr, CVisioShape, AreaIU);
  11517.     return ret;
  11518. }
  11519.  
  11520.  
  11521. VW_INLINE double CVisioShape::LengthIU()
  11522. {
  11523.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11524.     double ret= 0;
  11525.     CHECK_IP(GetIP(), CVisioShape, LengthIU);
  11526.     if (NULL!=GetIP())
  11527.         hr= GetIP()->get_LengthIU(&ret);
  11528.     CHECK_HRESULT(hr, CVisioShape, LengthIU);
  11529.     return ret;
  11530. }
  11531.  
  11532.  
  11533. VW_INLINE IUnknown FAR *CVisioShape::GeomExIf(short fFill, double LineRes)
  11534. {
  11535.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11536.     IUnknown FAR *lpRet= NULL;
  11537.     CHECK_IP(GetIP(), CVisioShape, GeomExIf);
  11538.     if (NULL!=GetIP())
  11539.         hr= GetIP()->get_GeomExIf(fFill, LineRes, &lpRet);
  11540.     CHECK_HRESULT(hr, CVisioShape, GeomExIf);
  11541.     return lpRet;
  11542. }
  11543.  
  11544.  
  11545. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::UniqueID(short fUniqueID)
  11546. {
  11547.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11548.     BSTR ret= 0;
  11549.     CHECK_IP(GetIP(), CVisioShape, UniqueID);
  11550.     if (NULL!=GetIP())
  11551.         hr= GetIP()->get_UniqueID(fUniqueID, &ret);
  11552.     CHECK_HRESULT(hr, CVisioShape, UniqueID);
  11553.     return BSTR_HELPER_CLASS(ret, TRUE);
  11554. }
  11555.  
  11556.  
  11557. VW_INLINE CVisioPage FAR CVisioShape::ContainingPage()
  11558. {
  11559.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11560.     IVPage FAR *lpRet= NULL;
  11561.     CHECK_IP(GetIP(), CVisioShape, ContainingPage);
  11562.     if (NULL!=GetIP())
  11563.         hr= GetIP()->get_ContainingPage(&lpRet);
  11564.     CHECK_HRESULT(hr, CVisioShape, ContainingPage);
  11565.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11566. }
  11567.  
  11568.  
  11569. VW_INLINE CVisioMaster FAR CVisioShape::ContainingMaster()
  11570. {
  11571.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11572.     IVMaster FAR *lpRet= NULL;
  11573.     CHECK_IP(GetIP(), CVisioShape, ContainingMaster);
  11574.     if (NULL!=GetIP())
  11575.         hr= GetIP()->get_ContainingMaster(&lpRet);
  11576.     CHECK_HRESULT(hr, CVisioShape, ContainingMaster);
  11577.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11578. }
  11579.  
  11580.  
  11581. VW_INLINE CVisioShape FAR CVisioShape::ContainingShape()
  11582. {
  11583.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11584.     IVShape FAR *lpRet= NULL;
  11585.     CHECK_IP(GetIP(), CVisioShape, ContainingShape);
  11586.     if (NULL!=GetIP())
  11587.         hr= GetIP()->get_ContainingShape(&lpRet);
  11588.     CHECK_HRESULT(hr, CVisioShape, ContainingShape);
  11589.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11590. }
  11591.  
  11592.  
  11593. VW_INLINE short CVisioShape::SectionExists(short Section, short fLocalExists)
  11594. {
  11595.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11596.     short ret= 0;
  11597.     CHECK_IP(GetIP(), CVisioShape, SectionExists);
  11598.     if (NULL!=GetIP())
  11599.         hr= GetIP()->get_SectionExists(Section, fLocalExists, &ret);
  11600.     CHECK_HRESULT(hr, CVisioShape, SectionExists);
  11601.     return ret;
  11602. }
  11603.  
  11604.  
  11605. VW_INLINE short CVisioShape::RowExists(short Section, short Row, short fLocalExists)
  11606. {
  11607.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11608.     short ret= 0;
  11609.     CHECK_IP(GetIP(), CVisioShape, RowExists);
  11610.     if (NULL!=GetIP())
  11611.         hr= GetIP()->get_RowExists(Section, Row, fLocalExists, &ret);
  11612.     CHECK_HRESULT(hr, CVisioShape, RowExists);
  11613.     return ret;
  11614. }
  11615.  
  11616.  
  11617. VW_INLINE short CVisioShape::CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists)
  11618. {
  11619.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11620.     short ret= 0;
  11621.     CHECK_IP(GetIP(), CVisioShape, CellExists);
  11622.     if (NULL!=GetIP())
  11623.         hr= GetIP()->get_CellExists(CellName, fLocalExists, &ret);
  11624.     CHECK_HRESULT(hr, CVisioShape, CellExists);
  11625.     return ret;
  11626. }
  11627.  
  11628.  
  11629. VW_INLINE short CVisioShape::CellsSRCExists(short Section, short Row, short Column, short fLocalExists)
  11630. {
  11631.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11632.     short ret= 0;
  11633.     CHECK_IP(GetIP(), CVisioShape, CellsSRCExists);
  11634.     if (NULL!=GetIP())
  11635.         hr= GetIP()->get_CellsSRCExists(Section, Row, Column, fLocalExists, &ret);
  11636.     CHECK_HRESULT(hr, CVisioShape, CellsSRCExists);
  11637.     return ret;
  11638. }
  11639.  
  11640.  
  11641. VW_INLINE short CVisioShape::LayerCount()
  11642. {
  11643.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11644.     short ret= 0;
  11645.     CHECK_IP(GetIP(), CVisioShape, LayerCount);
  11646.     if (NULL!=GetIP())
  11647.         hr= GetIP()->get_LayerCount(&ret);
  11648.     CHECK_HRESULT(hr, CVisioShape, LayerCount);
  11649.     return ret;
  11650. }
  11651.  
  11652.  
  11653. VW_INLINE CVisioLayer FAR CVisioShape::Layer(short Index)
  11654. {
  11655.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11656.     IVLayer FAR *lpRet= NULL;
  11657.     CHECK_IP(GetIP(), CVisioShape, Layer);
  11658.     if (NULL!=GetIP())
  11659.         hr= GetIP()->get_Layer(Index, &lpRet);
  11660.     CHECK_HRESULT(hr, CVisioShape, Layer);
  11661.     return CVisioLayer(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11662. }
  11663.  
  11664.  
  11665. VW_INLINE short CVisioShape::AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag)
  11666. {
  11667.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11668.     short ret= 0;
  11669.     CHECK_IP(GetIP(), CVisioShape, AddNamedRow);
  11670.     if (NULL!=GetIP())
  11671.         hr= GetIP()->AddNamedRow(Section, RowName, RowTag, &ret);
  11672.     CHECK_HRESULT(hr, CVisioShape, AddNamedRow);
  11673.     return ret;
  11674. }
  11675.  
  11676.  
  11677. VW_INLINE short CVisioShape::AddRows(short Section, short Row, short RowTag, short RowCount)
  11678. {
  11679.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11680.     short ret= 0;
  11681.     CHECK_IP(GetIP(), CVisioShape, AddRows);
  11682.     if (NULL!=GetIP())
  11683.         hr= GetIP()->AddRows(Section, Row, RowTag, RowCount, &ret);
  11684.     CHECK_HRESULT(hr, CVisioShape, AddRows);
  11685.     return ret;
  11686. }
  11687.  
  11688.  
  11689. VW_INLINE CVisioEventList FAR CVisioShape::EventList()
  11690. {
  11691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11692.     IVEventList FAR *lpRet= NULL;
  11693.     CHECK_IP(GetIP(), CVisioShape, EventList);
  11694.     if (NULL!=GetIP())
  11695.         hr= GetIP()->get_EventList(&lpRet);
  11696.     CHECK_HRESULT(hr, CVisioShape, EventList);
  11697.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11698. }
  11699.  
  11700.  
  11701. VW_INLINE short CVisioShape::PersistsEvents()
  11702. {
  11703.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11704.     short ret= 0;
  11705.     CHECK_IP(GetIP(), CVisioShape, PersistsEvents);
  11706.     if (NULL!=GetIP())
  11707.         hr= GetIP()->get_PersistsEvents(&ret);
  11708.     CHECK_HRESULT(hr, CVisioShape, PersistsEvents);
  11709.     return ret;
  11710. }
  11711.  
  11712.  
  11713. VW_INLINE CVisioShape FAR CVisioShape::DrawLine(double xLeft, double yTop, double xRight, double yBottom)
  11714. {
  11715.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11716.     IVShape FAR *lpRet= NULL;
  11717.     CHECK_IP(GetIP(), CVisioShape, DrawLine);
  11718.     if (NULL!=GetIP())
  11719.         hr= GetIP()->DrawLine(xLeft, yTop, xRight, yBottom, &lpRet);
  11720.     CHECK_HRESULT(hr, CVisioShape, DrawLine);
  11721.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11722. }
  11723.  
  11724.  
  11725. VW_INLINE CVisioShape FAR CVisioShape::DrawRectangle(double xLeft, double yTop, double xRight, double yBottom)
  11726. {
  11727.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11728.     IVShape FAR *lpRet= NULL;
  11729.     CHECK_IP(GetIP(), CVisioShape, DrawRectangle);
  11730.     if (NULL!=GetIP())
  11731.         hr= GetIP()->DrawRectangle(xLeft, yTop, xRight, yBottom, &lpRet);
  11732.     CHECK_HRESULT(hr, CVisioShape, DrawRectangle);
  11733.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11734. }
  11735.  
  11736.  
  11737. VW_INLINE CVisioShape FAR CVisioShape::DrawOval(double xLeft, double yTop, double xRight, double yBottom)
  11738. {
  11739.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11740.     IVShape FAR *lpRet= NULL;
  11741.     CHECK_IP(GetIP(), CVisioShape, DrawOval);
  11742.     if (NULL!=GetIP())
  11743.         hr= GetIP()->DrawOval(xLeft, yTop, xRight, yBottom, &lpRet);
  11744.     CHECK_HRESULT(hr, CVisioShape, DrawOval);
  11745.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11746. }
  11747.  
  11748.  
  11749. VW_INLINE CVisioShape FAR CVisioShape::DrawSpline(/*double*/ SAFEARRAY FAR * FAR *xyArray, double Tolerance, short Flags)
  11750. {
  11751.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11752.     IVShape FAR *lpRet= NULL;
  11753.     CHECK_IP(GetIP(), CVisioShape, DrawSpline);
  11754.     if (NULL!=GetIP())
  11755.         hr= GetIP()->DrawSpline(xyArray, Tolerance, Flags, &lpRet);
  11756.     CHECK_HRESULT(hr, CVisioShape, DrawSpline);
  11757.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11758. }
  11759.  
  11760.  
  11761. VW_INLINE CVisioShape FAR CVisioShape::DrawBezier(/*double*/ SAFEARRAY FAR * FAR *xyArray, short degree, short Flags)
  11762. {
  11763.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11764.     IVShape FAR *lpRet= NULL;
  11765.     CHECK_IP(GetIP(), CVisioShape, DrawBezier);
  11766.     if (NULL!=GetIP())
  11767.         hr= GetIP()->DrawBezier(xyArray, degree, Flags, &lpRet);
  11768.     CHECK_HRESULT(hr, CVisioShape, DrawBezier);
  11769.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11770. }
  11771.  
  11772.  
  11773. VW_INLINE CVisioShape FAR CVisioShape::DrawPolyline(/*double*/ SAFEARRAY FAR * FAR *xyArray, short Flags)
  11774. {
  11775.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11776.     IVShape FAR *lpRet= NULL;
  11777.     CHECK_IP(GetIP(), CVisioShape, DrawPolyline);
  11778.     if (NULL!=GetIP())
  11779.         hr= GetIP()->DrawPolyline(xyArray, Flags, &lpRet);
  11780.     CHECK_HRESULT(hr, CVisioShape, DrawPolyline);
  11781.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11782. }
  11783.  
  11784.  
  11785. VW_INLINE void CVisioShape::FitCurve(double Tolerance, short Flags)
  11786. {
  11787.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11788.     CHECK_IP(GetIP(), CVisioShape, FitCurve);
  11789.     if (NULL!=GetIP())
  11790.         hr= GetIP()->FitCurve(Tolerance, Flags);
  11791.     CHECK_HRESULT(hr, CVisioShape, FitCurve);
  11792. }
  11793.  
  11794.  
  11795. VW_INLINE CVisioShape FAR CVisioShape::Import(BSTR_HELPER_CLASS FAR &FileName)
  11796. {
  11797.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11798.     IVShape FAR *lpRet= NULL;
  11799.     CHECK_IP(GetIP(), CVisioShape, Import);
  11800.     if (NULL!=GetIP())
  11801.         hr= GetIP()->Import(FileName, &lpRet);
  11802.     CHECK_HRESULT(hr, CVisioShape, Import);
  11803.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11804. }
  11805.  
  11806.  
  11807. VW_INLINE void CVisioShape::CenterDrawing()
  11808. {
  11809.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11810.     CHECK_IP(GetIP(), CVisioShape, CenterDrawing);
  11811.     if (NULL!=GetIP())
  11812.         hr= GetIP()->CenterDrawing();
  11813.     CHECK_HRESULT(hr, CVisioShape, CenterDrawing);
  11814. }
  11815.  
  11816.  
  11817. VW_INLINE CVisioShape FAR CVisioShape::InsertFromFile(BSTR_HELPER_CLASS FAR &FileName, short Flags)
  11818. {
  11819.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11820.     IVShape FAR *lpRet= NULL;
  11821.     CHECK_IP(GetIP(), CVisioShape, InsertFromFile);
  11822.     if (NULL!=GetIP())
  11823.         hr= GetIP()->InsertFromFile(FileName, Flags, &lpRet);
  11824.     CHECK_HRESULT(hr, CVisioShape, InsertFromFile);
  11825.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11826. }
  11827.  
  11828.  
  11829. VW_INLINE CVisioShape FAR CVisioShape::InsertObject(BSTR_HELPER_CLASS FAR &ClassOrProgID, short Flags)
  11830. {
  11831.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11832.     IVShape FAR *lpRet= NULL;
  11833.     CHECK_IP(GetIP(), CVisioShape, InsertObject);
  11834.     if (NULL!=GetIP())
  11835.         hr= GetIP()->InsertObject(ClassOrProgID, Flags, &lpRet);
  11836.     CHECK_HRESULT(hr, CVisioShape, InsertObject);
  11837.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11838. }
  11839.  
  11840.  
  11841. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::ClassID()
  11842. {
  11843.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11844.     BSTR ret= 0;
  11845.     CHECK_IP(GetIP(), CVisioShape, ClassID);
  11846.     if (NULL!=GetIP())
  11847.         hr= GetIP()->get_ClassID(&ret);
  11848.     CHECK_HRESULT(hr, CVisioShape, ClassID);
  11849.     return BSTR_HELPER_CLASS(ret, TRUE);
  11850. }
  11851.  
  11852.  
  11853. VW_INLINE short CVisioShape::ForeignType()
  11854. {
  11855.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11856.     short ret= 0;
  11857.     CHECK_IP(GetIP(), CVisioShape, ForeignType);
  11858.     if (NULL!=GetIP())
  11859.         hr= GetIP()->get_ForeignType(&ret);
  11860.     CHECK_HRESULT(hr, CVisioShape, ForeignType);
  11861.     return ret;
  11862. }
  11863.  
  11864.  
  11865. VW_INLINE IDispatch FAR *CVisioShape::Object()
  11866. {
  11867.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11868.     IDispatch FAR *lpRet= NULL;
  11869.     CHECK_IP(GetIP(), CVisioShape, Object);
  11870.     if (NULL!=GetIP())
  11871.         hr= GetIP()->get_Object(&lpRet);
  11872.     CHECK_HRESULT(hr, CVisioShape, Object);
  11873.     return lpRet;
  11874. }
  11875.  
  11876.  
  11877. VW_INLINE CVisioWindow FAR CVisioShape::OpenDrawWindow()
  11878. {
  11879.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11880.     IVWindow FAR *lpRet= NULL;
  11881.     CHECK_IP(GetIP(), CVisioShape, OpenDrawWindow);
  11882.     if (NULL!=GetIP())
  11883.         hr= GetIP()->OpenDrawWindow(&lpRet);
  11884.     CHECK_HRESULT(hr, CVisioShape, OpenDrawWindow);
  11885.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11886. }
  11887.  
  11888.  
  11889. VW_INLINE CVisioWindow FAR CVisioShape::OpenSheetWindow()
  11890. {
  11891.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11892.     IVWindow FAR *lpRet= NULL;
  11893.     CHECK_IP(GetIP(), CVisioShape, OpenSheetWindow);
  11894.     if (NULL!=GetIP())
  11895.         hr= GetIP()->OpenSheetWindow(&lpRet);
  11896.     CHECK_HRESULT(hr, CVisioShape, OpenSheetWindow);
  11897.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11898. }
  11899.  
  11900.  
  11901. VW_INLINE short CVisioShape::ID()
  11902. {
  11903.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11904.     short ret= 0;
  11905.     CHECK_IP(GetIP(), CVisioShape, ID);
  11906.     if (NULL!=GetIP())
  11907.         hr= GetIP()->get_ID(&ret);
  11908.     CHECK_HRESULT(hr, CVisioShape, ID);
  11909.     return ret;
  11910. }
  11911.  
  11912.  
  11913. VW_INLINE short CVisioShape::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray)
  11914. {
  11915.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11916.     short ret= 0;
  11917.     CHECK_IP(GetIP(), CVisioShape, DropMany);
  11918.     if (NULL!=GetIP())
  11919.         hr= GetIP()->DropMany(ObjectsToInstance, xyArray, IDArray, &ret);
  11920.     CHECK_HRESULT(hr, CVisioShape, DropMany);
  11921.     return ret;
  11922. }
  11923.  
  11924.  
  11925. VW_INLINE void CVisioShape::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  11926. {
  11927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11928.     CHECK_IP(GetIP(), CVisioShape, GetFormulas);
  11929.     if (NULL!=GetIP())
  11930.         hr= GetIP()->GetFormulas(SRCStream, formulaArray);
  11931.     CHECK_HRESULT(hr, CVisioShape, GetFormulas);
  11932. }
  11933.  
  11934.  
  11935. VW_INLINE void CVisioShape::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  11936. {
  11937.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11938.     CHECK_IP(GetIP(), CVisioShape, GetResults);
  11939.     if (NULL!=GetIP())
  11940.         hr= GetIP()->GetResults(SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  11941.     CHECK_HRESULT(hr, CVisioShape, GetResults);
  11942. }
  11943.  
  11944.  
  11945. VW_INLINE short CVisioShape::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags)
  11946. {
  11947.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11948.     short ret= 0;
  11949.     CHECK_IP(GetIP(), CVisioShape, SetFormulas);
  11950.     if (NULL!=GetIP())
  11951.         hr= GetIP()->SetFormulas(SRCStream, formulaArray, Flags, &ret);
  11952.     CHECK_HRESULT(hr, CVisioShape, SetFormulas);
  11953.     return ret;
  11954. }
  11955.  
  11956.  
  11957. VW_INLINE short CVisioShape::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags)
  11958. {
  11959.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11960.     short ret= 0;
  11961.     CHECK_IP(GetIP(), CVisioShape, SetResults);
  11962.     if (NULL!=GetIP())
  11963.         hr= GetIP()->SetResults(SRCStream, UnitsNamesOrCodes, resultArray, Flags, &ret);
  11964.     CHECK_HRESULT(hr, CVisioShape, SetResults);
  11965.     return ret;
  11966. }
  11967.  
  11968.  
  11969. VW_INLINE CVisioConnects FAR CVisioShape::FromConnects()
  11970. {
  11971.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11972.     IVConnects FAR *lpRet= NULL;
  11973.     CHECK_IP(GetIP(), CVisioShape, FromConnects);
  11974.     if (NULL!=GetIP())
  11975.         hr= GetIP()->get_FromConnects(&lpRet);
  11976.     CHECK_HRESULT(hr, CVisioShape, FromConnects);
  11977.     return CVisioConnects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  11978. }
  11979.  
  11980.  
  11981. VW_INLINE void CVisioShape::Layout()
  11982. {
  11983.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11984.     CHECK_IP(GetIP(), CVisioShape, Layout);
  11985.     if (NULL!=GetIP())
  11986.         hr= GetIP()->Layout();
  11987.     CHECK_HRESULT(hr, CVisioShape, Layout);
  11988. }
  11989.  
  11990.  
  11991. VW_INLINE void CVisioShape::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  11992. {
  11993.     HRESULT hr= VW_INTERFACE_NOT_SET;
  11994.     CHECK_IP(GetIP(), CVisioShape, BoundingBox);
  11995.     if (NULL!=GetIP())
  11996.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  11997.     CHECK_HRESULT(hr, CVisioShape, BoundingBox);
  11998. }
  11999.  
  12000.  
  12001. VW_INLINE short CVisioShape::HitTest(double xPos, double yPos, double Tolerance)
  12002. {
  12003.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12004.     short ret= 0;
  12005.     CHECK_IP(GetIP(), CVisioShape, HitTest);
  12006.     if (NULL!=GetIP())
  12007.         hr= GetIP()->HitTest(xPos, yPos, Tolerance, &ret);
  12008.     CHECK_HRESULT(hr, CVisioShape, HitTest);
  12009.     return ret;
  12010. }
  12011.  
  12012.  
  12013. VW_INLINE CVisioHyperlink FAR CVisioShape::Hyperlink()
  12014. {
  12015.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12016.     IVHyperlink FAR *lpRet= NULL;
  12017.     CHECK_IP(GetIP(), CVisioShape, Hyperlink);
  12018.     if (NULL!=GetIP())
  12019.         hr= GetIP()->get_Hyperlink(&lpRet);
  12020.     CHECK_HRESULT(hr, CVisioShape, Hyperlink);
  12021.     return CVisioHyperlink(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12022. }
  12023.  
  12024.  
  12025. VW_INLINE BSTR_HELPER_CLASS FAR CVisioShape::ProgID()
  12026. {
  12027.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12028.     BSTR ret= 0;
  12029.     CHECK_IP(GetIP(), CVisioShape, ProgID);
  12030.     if (NULL!=GetIP())
  12031.         hr= GetIP()->get_ProgID(&ret);
  12032.     CHECK_HRESULT(hr, CVisioShape, ProgID);
  12033.     return BSTR_HELPER_CLASS(ret, TRUE);
  12034. }
  12035.  
  12036.  
  12037. VW_INLINE short CVisioShape::ObjectIsInherited()
  12038. {
  12039.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12040.     short ret= 0;
  12041.     CHECK_IP(GetIP(), CVisioShape, ObjectIsInherited);
  12042.     if (NULL!=GetIP())
  12043.         hr= GetIP()->get_ObjectIsInherited(&ret);
  12044.     CHECK_HRESULT(hr, CVisioShape, ObjectIsInherited);
  12045.     return ret;
  12046. }
  12047.  
  12048.  
  12049. VW_INLINE CVisioPaths FAR CVisioShape::Paths()
  12050. {
  12051.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12052.     IVPaths FAR *lpRet= NULL;
  12053.     CHECK_IP(GetIP(), CVisioShape, Paths);
  12054.     if (NULL!=GetIP())
  12055.         hr= GetIP()->get_Paths(&lpRet);
  12056.     CHECK_HRESULT(hr, CVisioShape, Paths);
  12057.     return CVisioPaths(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12058. }
  12059.  
  12060.  
  12061. VW_INLINE CVisioPaths FAR CVisioShape::PathsLocal()
  12062. {
  12063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12064.     IVPaths FAR *lpRet= NULL;
  12065.     CHECK_IP(GetIP(), CVisioShape, PathsLocal);
  12066.     if (NULL!=GetIP())
  12067.         hr= GetIP()->get_PathsLocal(&lpRet);
  12068.     CHECK_HRESULT(hr, CVisioShape, PathsLocal);
  12069.     return CVisioPaths(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12070. }
  12071.  
  12072.  
  12073. VW_INLINE CVisioHyperlink FAR CVisioShape::AddHyperlink()
  12074. {
  12075.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12076.     IVHyperlink FAR *lpRet= NULL;
  12077.     CHECK_IP(GetIP(), CVisioShape, AddHyperlink);
  12078.     if (NULL!=GetIP())
  12079.         hr= GetIP()->AddHyperlink(&lpRet);
  12080.     CHECK_HRESULT(hr, CVisioShape, AddHyperlink);
  12081.     return CVisioHyperlink(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12082. }
  12083.  
  12084.  
  12085.  
  12086. //  ***************************************************************************
  12087. //  Implementation of class CVisioShapes
  12088.  
  12089. VW_INLINE CVisioApplication FAR CVisioShapes::Application()
  12090. {
  12091.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12092.     IVApplication FAR *lpRet= NULL;
  12093.     CHECK_IP(GetIP(), CVisioShapes, Application);
  12094.     if (NULL!=GetIP())
  12095.         hr= GetIP()->get_Application(&lpRet);
  12096.     CHECK_HRESULT(hr, CVisioShapes, Application);
  12097.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12098. }
  12099.  
  12100.  
  12101. VW_INLINE short CVisioShapes::ObjectType()
  12102. {
  12103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12104.     short ret= 0;
  12105.     CHECK_IP(GetIP(), CVisioShapes, ObjectType);
  12106.     if (NULL!=GetIP())
  12107.         hr= GetIP()->get_ObjectType(&ret);
  12108.     CHECK_HRESULT(hr, CVisioShapes, ObjectType);
  12109.     return ret;
  12110. }
  12111.  
  12112.  
  12113. VW_INLINE CVisioShape FAR CVisioShapes::Item(VARIANT_HELPER_CLASS FAR &NameUIDOrIndex)
  12114. {
  12115.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12116.     IVShape FAR *lpRet= NULL;
  12117.     CHECK_IP(GetIP(), CVisioShapes, Item);
  12118.     if (NULL!=GetIP())
  12119.         hr= GetIP()->get_Item(NameUIDOrIndex, &lpRet);
  12120.     CHECK_HRESULT(hr, CVisioShapes, Item);
  12121.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12122. }
  12123.  
  12124.  
  12125. VW_INLINE short CVisioShapes::Count()
  12126. {
  12127.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12128.     short ret= 0;
  12129.     CHECK_IP(GetIP(), CVisioShapes, Count);
  12130.     if (NULL!=GetIP())
  12131.         hr= GetIP()->get_Count(&ret);
  12132.     CHECK_HRESULT(hr, CVisioShapes, Count);
  12133.     return ret;
  12134. }
  12135.  
  12136.  
  12137. VW_INLINE CVisioDocument FAR CVisioShapes::Document()
  12138. {
  12139.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12140.     IVDocument FAR *lpRet= NULL;
  12141.     CHECK_IP(GetIP(), CVisioShapes, Document);
  12142.     if (NULL!=GetIP())
  12143.         hr= GetIP()->get_Document(&lpRet);
  12144.     CHECK_HRESULT(hr, CVisioShapes, Document);
  12145.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12146. }
  12147.  
  12148.  
  12149. VW_INLINE CVisioPage FAR CVisioShapes::ContainingPage()
  12150. {
  12151.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12152.     IVPage FAR *lpRet= NULL;
  12153.     CHECK_IP(GetIP(), CVisioShapes, ContainingPage);
  12154.     if (NULL!=GetIP())
  12155.         hr= GetIP()->get_ContainingPage(&lpRet);
  12156.     CHECK_HRESULT(hr, CVisioShapes, ContainingPage);
  12157.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12158. }
  12159.  
  12160.  
  12161. VW_INLINE CVisioMaster FAR CVisioShapes::ContainingMaster()
  12162. {
  12163.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12164.     IVMaster FAR *lpRet= NULL;
  12165.     CHECK_IP(GetIP(), CVisioShapes, ContainingMaster);
  12166.     if (NULL!=GetIP())
  12167.         hr= GetIP()->get_ContainingMaster(&lpRet);
  12168.     CHECK_HRESULT(hr, CVisioShapes, ContainingMaster);
  12169.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12170. }
  12171.  
  12172.  
  12173. VW_INLINE CVisioShape FAR CVisioShapes::ContainingShape()
  12174. {
  12175.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12176.     IVShape FAR *lpRet= NULL;
  12177.     CHECK_IP(GetIP(), CVisioShapes, ContainingShape);
  12178.     if (NULL!=GetIP())
  12179.         hr= GetIP()->get_ContainingShape(&lpRet);
  12180.     CHECK_HRESULT(hr, CVisioShapes, ContainingShape);
  12181.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12182. }
  12183.  
  12184.  
  12185. VW_INLINE void CVisioShapes::CenterDrawing()
  12186. {
  12187.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12188.     CHECK_IP(GetIP(), CVisioShapes, CenterDrawing);
  12189.     if (NULL!=GetIP())
  12190.         hr= GetIP()->CenterDrawing();
  12191.     CHECK_HRESULT(hr, CVisioShapes, CenterDrawing);
  12192. }
  12193.  
  12194.  
  12195. VW_INLINE short CVisioShapes::Stat()
  12196. {
  12197.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12198.     short ret= 0;
  12199.     CHECK_IP(GetIP(), CVisioShapes, Stat);
  12200.     if (NULL!=GetIP())
  12201.         hr= GetIP()->get_Stat(&ret);
  12202.     CHECK_HRESULT(hr, CVisioShapes, Stat);
  12203.     return ret;
  12204. }
  12205.  
  12206.  
  12207. VW_INLINE CVisioEventList FAR CVisioShapes::EventList()
  12208. {
  12209.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12210.     IVEventList FAR *lpRet= NULL;
  12211.     CHECK_IP(GetIP(), CVisioShapes, EventList);
  12212.     if (NULL!=GetIP())
  12213.         hr= GetIP()->get_EventList(&lpRet);
  12214.     CHECK_HRESULT(hr, CVisioShapes, EventList);
  12215.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12216. }
  12217.  
  12218.  
  12219. VW_INLINE short CVisioShapes::PersistsEvents()
  12220. {
  12221.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12222.     short ret= 0;
  12223.     CHECK_IP(GetIP(), CVisioShapes, PersistsEvents);
  12224.     if (NULL!=GetIP())
  12225.         hr= GetIP()->get_PersistsEvents(&ret);
  12226.     CHECK_HRESULT(hr, CVisioShapes, PersistsEvents);
  12227.     return ret;
  12228. }
  12229.  
  12230.  
  12231. VW_INLINE CVisioShape FAR CVisioShapes::ItemFromID(short ObjectID)
  12232. {
  12233.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12234.     IVShape FAR *lpRet= NULL;
  12235.     CHECK_IP(GetIP(), CVisioShapes, ItemFromID);
  12236.     if (NULL!=GetIP())
  12237.         hr= GetIP()->get_ItemFromID(ObjectID, &lpRet);
  12238.     CHECK_HRESULT(hr, CVisioShapes, ItemFromID);
  12239.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12240. }
  12241.  
  12242.  
  12243.  
  12244. //  ***************************************************************************
  12245. //  Implementation of class CVisioStyle
  12246.  
  12247. VW_INLINE CVisioApplication FAR CVisioStyle::Application()
  12248. {
  12249.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12250.     IVApplication FAR *lpRet= NULL;
  12251.     CHECK_IP(GetIP(), CVisioStyle, Application);
  12252.     if (NULL!=GetIP())
  12253.         hr= GetIP()->get_Application(&lpRet);
  12254.     CHECK_HRESULT(hr, CVisioStyle, Application);
  12255.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12256. }
  12257.  
  12258.  
  12259. VW_INLINE short CVisioStyle::Stat()
  12260. {
  12261.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12262.     short ret= 0;
  12263.     CHECK_IP(GetIP(), CVisioStyle, Stat);
  12264.     if (NULL!=GetIP())
  12265.         hr= GetIP()->get_Stat(&ret);
  12266.     CHECK_HRESULT(hr, CVisioStyle, Stat);
  12267.     return ret;
  12268. }
  12269.  
  12270.  
  12271. VW_INLINE short CVisioStyle::ObjectType()
  12272. {
  12273.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12274.     short ret= 0;
  12275.     CHECK_IP(GetIP(), CVisioStyle, ObjectType);
  12276.     if (NULL!=GetIP())
  12277.         hr= GetIP()->get_ObjectType(&ret);
  12278.     CHECK_HRESULT(hr, CVisioStyle, ObjectType);
  12279.     return ret;
  12280. }
  12281.  
  12282.  
  12283. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStyle::getName()
  12284. {
  12285.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12286.     BSTR ret= 0;
  12287.     CHECK_IP(GetIP(), CVisioStyle, getName);
  12288.     if (NULL!=GetIP())
  12289.         hr= GetIP()->get_Name(&ret);
  12290.     CHECK_HRESULT(hr, CVisioStyle, getName);
  12291.     return BSTR_HELPER_CLASS(ret, TRUE);
  12292. }
  12293.  
  12294.  
  12295. VW_INLINE void CVisioStyle::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12296. {
  12297.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12298.     CHECK_IP(GetIP(), CVisioStyle, putName);
  12299.     if (NULL!=GetIP())
  12300.         hr= GetIP()->put_Name(param01);
  12301.     CHECK_HRESULT(hr, CVisioStyle, putName);
  12302. }
  12303.  
  12304.  
  12305. VW_INLINE short CVisioStyle::Index()
  12306. {
  12307.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12308.     short ret= 0;
  12309.     CHECK_IP(GetIP(), CVisioStyle, Index);
  12310.     if (NULL!=GetIP())
  12311.         hr= GetIP()->get_Index(&ret);
  12312.     CHECK_HRESULT(hr, CVisioStyle, Index);
  12313.     return ret;
  12314. }
  12315.  
  12316.  
  12317. VW_INLINE CVisioDocument FAR CVisioStyle::Document()
  12318. {
  12319.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12320.     IVDocument FAR *lpRet= NULL;
  12321.     CHECK_IP(GetIP(), CVisioStyle, Document);
  12322.     if (NULL!=GetIP())
  12323.         hr= GetIP()->get_Document(&lpRet);
  12324.     CHECK_HRESULT(hr, CVisioStyle, Document);
  12325.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12326. }
  12327.  
  12328.  
  12329. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStyle::getBasedOn()
  12330. {
  12331.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12332.     BSTR ret= 0;
  12333.     CHECK_IP(GetIP(), CVisioStyle, getBasedOn);
  12334.     if (NULL!=GetIP())
  12335.         hr= GetIP()->get_BasedOn(&ret);
  12336.     CHECK_HRESULT(hr, CVisioStyle, getBasedOn);
  12337.     return BSTR_HELPER_CLASS(ret, TRUE);
  12338. }
  12339.  
  12340.  
  12341. VW_INLINE void CVisioStyle::putBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12342. {
  12343.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12344.     CHECK_IP(GetIP(), CVisioStyle, putBasedOn);
  12345.     if (NULL!=GetIP())
  12346.         hr= GetIP()->put_BasedOn(param01);
  12347.     CHECK_HRESULT(hr, CVisioStyle, putBasedOn);
  12348. }
  12349.  
  12350.  
  12351. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStyle::getTextBasedOn()
  12352. {
  12353.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12354.     BSTR ret= 0;
  12355.     CHECK_IP(GetIP(), CVisioStyle, getTextBasedOn);
  12356.     if (NULL!=GetIP())
  12357.         hr= GetIP()->get_TextBasedOn(&ret);
  12358.     CHECK_HRESULT(hr, CVisioStyle, getTextBasedOn);
  12359.     return BSTR_HELPER_CLASS(ret, TRUE);
  12360. }
  12361.  
  12362.  
  12363. VW_INLINE void CVisioStyle::putTextBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12364. {
  12365.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12366.     CHECK_IP(GetIP(), CVisioStyle, putTextBasedOn);
  12367.     if (NULL!=GetIP())
  12368.         hr= GetIP()->put_TextBasedOn(param01);
  12369.     CHECK_HRESULT(hr, CVisioStyle, putTextBasedOn);
  12370. }
  12371.  
  12372.  
  12373. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStyle::getLineBasedOn()
  12374. {
  12375.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12376.     BSTR ret= 0;
  12377.     CHECK_IP(GetIP(), CVisioStyle, getLineBasedOn);
  12378.     if (NULL!=GetIP())
  12379.         hr= GetIP()->get_LineBasedOn(&ret);
  12380.     CHECK_HRESULT(hr, CVisioStyle, getLineBasedOn);
  12381.     return BSTR_HELPER_CLASS(ret, TRUE);
  12382. }
  12383.  
  12384.  
  12385. VW_INLINE void CVisioStyle::putLineBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12386. {
  12387.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12388.     CHECK_IP(GetIP(), CVisioStyle, putLineBasedOn);
  12389.     if (NULL!=GetIP())
  12390.         hr= GetIP()->put_LineBasedOn(param01);
  12391.     CHECK_HRESULT(hr, CVisioStyle, putLineBasedOn);
  12392. }
  12393.  
  12394.  
  12395. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStyle::getFillBasedOn()
  12396. {
  12397.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12398.     BSTR ret= 0;
  12399.     CHECK_IP(GetIP(), CVisioStyle, getFillBasedOn);
  12400.     if (NULL!=GetIP())
  12401.         hr= GetIP()->get_FillBasedOn(&ret);
  12402.     CHECK_HRESULT(hr, CVisioStyle, getFillBasedOn);
  12403.     return BSTR_HELPER_CLASS(ret, TRUE);
  12404. }
  12405.  
  12406.  
  12407. VW_INLINE void CVisioStyle::putFillBasedOn(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12408. {
  12409.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12410.     CHECK_IP(GetIP(), CVisioStyle, putFillBasedOn);
  12411.     if (NULL!=GetIP())
  12412.         hr= GetIP()->put_FillBasedOn(param01);
  12413.     CHECK_HRESULT(hr, CVisioStyle, putFillBasedOn);
  12414. }
  12415.  
  12416.  
  12417. VW_INLINE short CVisioStyle::getIncludesText()
  12418. {
  12419.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12420.     short ret= 0;
  12421.     CHECK_IP(GetIP(), CVisioStyle, getIncludesText);
  12422.     if (NULL!=GetIP())
  12423.         hr= GetIP()->get_IncludesText(&ret);
  12424.     CHECK_HRESULT(hr, CVisioStyle, getIncludesText);
  12425.     return ret;
  12426. }
  12427.  
  12428.  
  12429. VW_INLINE void CVisioStyle::putIncludesText(VW_CONST short param01)
  12430. {
  12431.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12432.     CHECK_IP(GetIP(), CVisioStyle, putIncludesText);
  12433.     if (NULL!=GetIP())
  12434.         hr= GetIP()->put_IncludesText(param01);
  12435.     CHECK_HRESULT(hr, CVisioStyle, putIncludesText);
  12436. }
  12437.  
  12438.  
  12439. VW_INLINE short CVisioStyle::getIncludesLine()
  12440. {
  12441.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12442.     short ret= 0;
  12443.     CHECK_IP(GetIP(), CVisioStyle, getIncludesLine);
  12444.     if (NULL!=GetIP())
  12445.         hr= GetIP()->get_IncludesLine(&ret);
  12446.     CHECK_HRESULT(hr, CVisioStyle, getIncludesLine);
  12447.     return ret;
  12448. }
  12449.  
  12450.  
  12451. VW_INLINE void CVisioStyle::putIncludesLine(VW_CONST short param01)
  12452. {
  12453.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12454.     CHECK_IP(GetIP(), CVisioStyle, putIncludesLine);
  12455.     if (NULL!=GetIP())
  12456.         hr= GetIP()->put_IncludesLine(param01);
  12457.     CHECK_HRESULT(hr, CVisioStyle, putIncludesLine);
  12458. }
  12459.  
  12460.  
  12461. VW_INLINE short CVisioStyle::getIncludesFill()
  12462. {
  12463.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12464.     short ret= 0;
  12465.     CHECK_IP(GetIP(), CVisioStyle, getIncludesFill);
  12466.     if (NULL!=GetIP())
  12467.         hr= GetIP()->get_IncludesFill(&ret);
  12468.     CHECK_HRESULT(hr, CVisioStyle, getIncludesFill);
  12469.     return ret;
  12470. }
  12471.  
  12472.  
  12473. VW_INLINE void CVisioStyle::putIncludesFill(VW_CONST short param01)
  12474. {
  12475.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12476.     CHECK_IP(GetIP(), CVisioStyle, putIncludesFill);
  12477.     if (NULL!=GetIP())
  12478.         hr= GetIP()->put_IncludesFill(param01);
  12479.     CHECK_HRESULT(hr, CVisioStyle, putIncludesFill);
  12480. }
  12481.  
  12482.  
  12483. VW_INLINE CVisioCell FAR CVisioStyle::Cells(BSTR_HELPER_CLASS FAR &CellName)
  12484. {
  12485.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12486.     IVCell FAR *lpRet= NULL;
  12487.     CHECK_IP(GetIP(), CVisioStyle, Cells);
  12488.     if (NULL!=GetIP())
  12489.         hr= GetIP()->get_Cells(CellName, &lpRet);
  12490.     CHECK_HRESULT(hr, CVisioStyle, Cells);
  12491.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12492. }
  12493.  
  12494.  
  12495. VW_INLINE void CVisioStyle::Delete()
  12496. {
  12497.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12498.     CHECK_IP(GetIP(), CVisioStyle, Delete);
  12499.     if (NULL!=GetIP())
  12500.         hr= GetIP()->Delete();
  12501.     CHECK_HRESULT(hr, CVisioStyle, Delete);
  12502. }
  12503.  
  12504.  
  12505. VW_INLINE CVisioEventList FAR CVisioStyle::EventList()
  12506. {
  12507.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12508.     IVEventList FAR *lpRet= NULL;
  12509.     CHECK_IP(GetIP(), CVisioStyle, EventList);
  12510.     if (NULL!=GetIP())
  12511.         hr= GetIP()->get_EventList(&lpRet);
  12512.     CHECK_HRESULT(hr, CVisioStyle, EventList);
  12513.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12514. }
  12515.  
  12516.  
  12517. VW_INLINE short CVisioStyle::PersistsEvents()
  12518. {
  12519.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12520.     short ret= 0;
  12521.     CHECK_IP(GetIP(), CVisioStyle, PersistsEvents);
  12522.     if (NULL!=GetIP())
  12523.         hr= GetIP()->get_PersistsEvents(&ret);
  12524.     CHECK_HRESULT(hr, CVisioStyle, PersistsEvents);
  12525.     return ret;
  12526. }
  12527.  
  12528.  
  12529. VW_INLINE short CVisioStyle::ID()
  12530. {
  12531.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12532.     short ret= 0;
  12533.     CHECK_IP(GetIP(), CVisioStyle, ID);
  12534.     if (NULL!=GetIP())
  12535.         hr= GetIP()->get_ID(&ret);
  12536.     CHECK_HRESULT(hr, CVisioStyle, ID);
  12537.     return ret;
  12538. }
  12539.  
  12540.  
  12541. VW_INLINE void CVisioStyle::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  12542. {
  12543.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12544.     CHECK_IP(GetIP(), CVisioStyle, GetFormulas);
  12545.     if (NULL!=GetIP())
  12546.         hr= GetIP()->GetFormulas(SRCStream, formulaArray);
  12547.     CHECK_HRESULT(hr, CVisioStyle, GetFormulas);
  12548. }
  12549.  
  12550.  
  12551. VW_INLINE void CVisioStyle::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  12552. {
  12553.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12554.     CHECK_IP(GetIP(), CVisioStyle, GetResults);
  12555.     if (NULL!=GetIP())
  12556.         hr= GetIP()->GetResults(SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  12557.     CHECK_HRESULT(hr, CVisioStyle, GetResults);
  12558. }
  12559.  
  12560.  
  12561. VW_INLINE short CVisioStyle::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags)
  12562. {
  12563.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12564.     short ret= 0;
  12565.     CHECK_IP(GetIP(), CVisioStyle, SetFormulas);
  12566.     if (NULL!=GetIP())
  12567.         hr= GetIP()->SetFormulas(SRCStream, formulaArray, Flags, &ret);
  12568.     CHECK_HRESULT(hr, CVisioStyle, SetFormulas);
  12569.     return ret;
  12570. }
  12571.  
  12572.  
  12573. VW_INLINE short CVisioStyle::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags)
  12574. {
  12575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12576.     short ret= 0;
  12577.     CHECK_IP(GetIP(), CVisioStyle, SetResults);
  12578.     if (NULL!=GetIP())
  12579.         hr= GetIP()->SetResults(SRCStream, UnitsNamesOrCodes, resultArray, Flags, &ret);
  12580.     CHECK_HRESULT(hr, CVisioStyle, SetResults);
  12581.     return ret;
  12582. }
  12583.  
  12584.  
  12585.  
  12586. //  ***************************************************************************
  12587. //  Implementation of class CVisioStyles
  12588.  
  12589. VW_INLINE CVisioApplication FAR CVisioStyles::Application()
  12590. {
  12591.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12592.     IVApplication FAR *lpRet= NULL;
  12593.     CHECK_IP(GetIP(), CVisioStyles, Application);
  12594.     if (NULL!=GetIP())
  12595.         hr= GetIP()->get_Application(&lpRet);
  12596.     CHECK_HRESULT(hr, CVisioStyles, Application);
  12597.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12598. }
  12599.  
  12600.  
  12601. VW_INLINE short CVisioStyles::ObjectType()
  12602. {
  12603.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12604.     short ret= 0;
  12605.     CHECK_IP(GetIP(), CVisioStyles, ObjectType);
  12606.     if (NULL!=GetIP())
  12607.         hr= GetIP()->get_ObjectType(&ret);
  12608.     CHECK_HRESULT(hr, CVisioStyles, ObjectType);
  12609.     return ret;
  12610. }
  12611.  
  12612.  
  12613. VW_INLINE CVisioStyle FAR CVisioStyles::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  12614. {
  12615.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12616.     IVStyle FAR *lpRet= NULL;
  12617.     CHECK_IP(GetIP(), CVisioStyles, Item);
  12618.     if (NULL!=GetIP())
  12619.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  12620.     CHECK_HRESULT(hr, CVisioStyles, Item);
  12621.     return CVisioStyle(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12622. }
  12623.  
  12624.  
  12625. VW_INLINE short CVisioStyles::Count()
  12626. {
  12627.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12628.     short ret= 0;
  12629.     CHECK_IP(GetIP(), CVisioStyles, Count);
  12630.     if (NULL!=GetIP())
  12631.         hr= GetIP()->get_Count(&ret);
  12632.     CHECK_HRESULT(hr, CVisioStyles, Count);
  12633.     return ret;
  12634. }
  12635.  
  12636.  
  12637. VW_INLINE CVisioDocument FAR CVisioStyles::Document()
  12638. {
  12639.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12640.     IVDocument FAR *lpRet= NULL;
  12641.     CHECK_IP(GetIP(), CVisioStyles, Document);
  12642.     if (NULL!=GetIP())
  12643.         hr= GetIP()->get_Document(&lpRet);
  12644.     CHECK_HRESULT(hr, CVisioStyles, Document);
  12645.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12646. }
  12647.  
  12648.  
  12649. VW_INLINE CVisioStyle FAR CVisioStyles::Add(BSTR_HELPER_CLASS FAR &StyleName, BSTR_HELPER_CLASS FAR &BasedOn, short fIncludesText, short fIncludesLine, short fIncludesFill)
  12650. {
  12651.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12652.     IVStyle FAR *lpRet= NULL;
  12653.     CHECK_IP(GetIP(), CVisioStyles, Add);
  12654.     if (NULL!=GetIP())
  12655.         hr= GetIP()->Add(StyleName, BasedOn, fIncludesText, fIncludesLine, fIncludesFill, &lpRet);
  12656.     CHECK_HRESULT(hr, CVisioStyles, Add);
  12657.     return CVisioStyle(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12658. }
  12659.  
  12660.  
  12661. VW_INLINE short CVisioStyles::Stat()
  12662. {
  12663.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12664.     short ret= 0;
  12665.     CHECK_IP(GetIP(), CVisioStyles, Stat);
  12666.     if (NULL!=GetIP())
  12667.         hr= GetIP()->get_Stat(&ret);
  12668.     CHECK_HRESULT(hr, CVisioStyles, Stat);
  12669.     return ret;
  12670. }
  12671.  
  12672.  
  12673. VW_INLINE CVisioEventList FAR CVisioStyles::EventList()
  12674. {
  12675.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12676.     IVEventList FAR *lpRet= NULL;
  12677.     CHECK_IP(GetIP(), CVisioStyles, EventList);
  12678.     if (NULL!=GetIP())
  12679.         hr= GetIP()->get_EventList(&lpRet);
  12680.     CHECK_HRESULT(hr, CVisioStyles, EventList);
  12681.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12682. }
  12683.  
  12684.  
  12685. VW_INLINE short CVisioStyles::PersistsEvents()
  12686. {
  12687.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12688.     short ret= 0;
  12689.     CHECK_IP(GetIP(), CVisioStyles, PersistsEvents);
  12690.     if (NULL!=GetIP())
  12691.         hr= GetIP()->get_PersistsEvents(&ret);
  12692.     CHECK_HRESULT(hr, CVisioStyles, PersistsEvents);
  12693.     return ret;
  12694. }
  12695.  
  12696.  
  12697. VW_INLINE CVisioStyle FAR CVisioStyles::ItemFromID(short ObjectID)
  12698. {
  12699.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12700.     IVStyle FAR *lpRet= NULL;
  12701.     CHECK_IP(GetIP(), CVisioStyles, ItemFromID);
  12702.     if (NULL!=GetIP())
  12703.         hr= GetIP()->get_ItemFromID(ObjectID, &lpRet);
  12704.     CHECK_HRESULT(hr, CVisioStyles, ItemFromID);
  12705.     return CVisioStyle(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12706. }
  12707.  
  12708.  
  12709. VW_INLINE void CVisioStyles::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  12710. {
  12711.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12712.     CHECK_IP(GetIP(), CVisioStyles, GetNames);
  12713.     if (NULL!=GetIP())
  12714.         hr= GetIP()->GetNames(NameArray);
  12715.     CHECK_HRESULT(hr, CVisioStyles, GetNames);
  12716. }
  12717.  
  12718.  
  12719.  
  12720. //  ***************************************************************************
  12721. //  Implementation of class CVisioWindow
  12722.  
  12723. VW_INLINE CVisioApplication FAR CVisioWindow::Application()
  12724. {
  12725.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12726.     IVApplication FAR *lpRet= NULL;
  12727.     CHECK_IP(GetIP(), CVisioWindow, Application);
  12728.     if (NULL!=GetIP())
  12729.         hr= GetIP()->get_Application(&lpRet);
  12730.     CHECK_HRESULT(hr, CVisioWindow, Application);
  12731.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12732. }
  12733.  
  12734.  
  12735. VW_INLINE short CVisioWindow::Stat()
  12736. {
  12737.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12738.     short ret= 0;
  12739.     CHECK_IP(GetIP(), CVisioWindow, Stat);
  12740.     if (NULL!=GetIP())
  12741.         hr= GetIP()->get_Stat(&ret);
  12742.     CHECK_HRESULT(hr, CVisioWindow, Stat);
  12743.     return ret;
  12744. }
  12745.  
  12746.  
  12747. VW_INLINE short CVisioWindow::ObjectType()
  12748. {
  12749.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12750.     short ret= 0;
  12751.     CHECK_IP(GetIP(), CVisioWindow, ObjectType);
  12752.     if (NULL!=GetIP())
  12753.         hr= GetIP()->get_ObjectType(&ret);
  12754.     CHECK_HRESULT(hr, CVisioWindow, ObjectType);
  12755.     return ret;
  12756. }
  12757.  
  12758.  
  12759. VW_INLINE void CVisioWindow::Activate()
  12760. {
  12761.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12762.     CHECK_IP(GetIP(), CVisioWindow, Activate);
  12763.     if (NULL!=GetIP())
  12764.         hr= GetIP()->Activate();
  12765.     CHECK_HRESULT(hr, CVisioWindow, Activate);
  12766. }
  12767.  
  12768.  
  12769. VW_INLINE short CVisioWindow::Type()
  12770. {
  12771.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12772.     short ret= 0;
  12773.     CHECK_IP(GetIP(), CVisioWindow, Type);
  12774.     if (NULL!=GetIP())
  12775.         hr= GetIP()->get_Type(&ret);
  12776.     CHECK_HRESULT(hr, CVisioWindow, Type);
  12777.     return ret;
  12778. }
  12779.  
  12780.  
  12781. VW_INLINE CVisioDocument FAR CVisioWindow::Document()
  12782. {
  12783.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12784.     IVDocument FAR *lpRet= NULL;
  12785.     CHECK_IP(GetIP(), CVisioWindow, Document);
  12786.     if (NULL!=GetIP())
  12787.         hr= GetIP()->get_Document(&lpRet);
  12788.     CHECK_HRESULT(hr, CVisioWindow, Document);
  12789.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12790. }
  12791.  
  12792.  
  12793. VW_INLINE CVisioPage FAR CVisioWindow::PageAsObj()
  12794. {
  12795.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12796.     IVPage FAR *lpRet= NULL;
  12797.     CHECK_IP(GetIP(), CVisioWindow, PageAsObj);
  12798.     if (NULL!=GetIP())
  12799.         hr= GetIP()->get_PageAsObj(&lpRet);
  12800.     CHECK_HRESULT(hr, CVisioWindow, PageAsObj);
  12801.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12802. }
  12803.  
  12804.  
  12805. VW_INLINE void CVisioWindow::PageFromName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  12806. {
  12807.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12808.     CHECK_IP(GetIP(), CVisioWindow, PageFromName);
  12809.     if (NULL!=GetIP())
  12810.         hr= GetIP()->put_PageFromName(param01);
  12811.     CHECK_HRESULT(hr, CVisioWindow, PageFromName);
  12812. }
  12813.  
  12814.  
  12815. VW_INLINE double CVisioWindow::getZoom()
  12816. {
  12817.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12818.     double ret= 0;
  12819.     CHECK_IP(GetIP(), CVisioWindow, getZoom);
  12820.     if (NULL!=GetIP())
  12821.         hr= GetIP()->get_Zoom(&ret);
  12822.     CHECK_HRESULT(hr, CVisioWindow, getZoom);
  12823.     return ret;
  12824. }
  12825.  
  12826.  
  12827. VW_INLINE void CVisioWindow::putZoom(VW_CONST double param01)
  12828. {
  12829.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12830.     CHECK_IP(GetIP(), CVisioWindow, putZoom);
  12831.     if (NULL!=GetIP())
  12832.         hr= GetIP()->put_Zoom(param01);
  12833.     CHECK_HRESULT(hr, CVisioWindow, putZoom);
  12834. }
  12835.  
  12836.  
  12837. VW_INLINE void CVisioWindow::Close()
  12838. {
  12839.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12840.     CHECK_IP(GetIP(), CVisioWindow, Close);
  12841.     if (NULL!=GetIP())
  12842.         hr= GetIP()->Close();
  12843.     CHECK_HRESULT(hr, CVisioWindow, Close);
  12844. }
  12845.  
  12846.  
  12847. VW_INLINE void CVisioWindow::SelectAll()
  12848. {
  12849.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12850.     CHECK_IP(GetIP(), CVisioWindow, SelectAll);
  12851.     if (NULL!=GetIP())
  12852.         hr= GetIP()->SelectAll();
  12853.     CHECK_HRESULT(hr, CVisioWindow, SelectAll);
  12854. }
  12855.  
  12856.  
  12857. VW_INLINE void CVisioWindow::DeselectAll()
  12858. {
  12859.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12860.     CHECK_IP(GetIP(), CVisioWindow, DeselectAll);
  12861.     if (NULL!=GetIP())
  12862.         hr= GetIP()->DeselectAll();
  12863.     CHECK_HRESULT(hr, CVisioWindow, DeselectAll);
  12864. }
  12865.  
  12866.  
  12867. VW_INLINE CVisioSelection FAR CVisioWindow::Selection()
  12868. {
  12869.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12870.     IVSelection FAR *lpRet= NULL;
  12871.     CHECK_IP(GetIP(), CVisioWindow, Selection);
  12872.     if (NULL!=GetIP())
  12873.         hr= GetIP()->get_Selection(&lpRet);
  12874.     CHECK_HRESULT(hr, CVisioWindow, Selection);
  12875.     return CVisioSelection(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  12876. }
  12877.  
  12878.  
  12879. VW_INLINE void CVisioWindow::Select(CVisioShape FAR &SheetObject, short SelectAction)
  12880. {
  12881.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12882.     CHECK_IP(GetIP(), CVisioWindow, Select);
  12883.     if (NULL!=GetIP())
  12884.         hr= GetIP()->Select(SheetObject, SelectAction);
  12885.     CHECK_HRESULT(hr, CVisioWindow, Select);
  12886. }
  12887.  
  12888.  
  12889. VW_INLINE short CVisioWindow::Index()
  12890. {
  12891.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12892.     short ret= 0;
  12893.     CHECK_IP(GetIP(), CVisioWindow, Index);
  12894.     if (NULL!=GetIP())
  12895.         hr= GetIP()->get_Index(&ret);
  12896.     CHECK_HRESULT(hr, CVisioWindow, Index);
  12897.     return ret;
  12898. }
  12899.  
  12900.  
  12901. VW_INLINE void CVisioWindow::Cut()
  12902. {
  12903.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12904.     CHECK_IP(GetIP(), CVisioWindow, Cut);
  12905.     if (NULL!=GetIP())
  12906.         hr= GetIP()->Cut();
  12907.     CHECK_HRESULT(hr, CVisioWindow, Cut);
  12908. }
  12909.  
  12910.  
  12911. VW_INLINE void CVisioWindow::Copy()
  12912. {
  12913.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12914.     CHECK_IP(GetIP(), CVisioWindow, Copy);
  12915.     if (NULL!=GetIP())
  12916.         hr= GetIP()->Copy();
  12917.     CHECK_HRESULT(hr, CVisioWindow, Copy);
  12918. }
  12919.  
  12920.  
  12921. VW_INLINE void CVisioWindow::Paste()
  12922. {
  12923.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12924.     CHECK_IP(GetIP(), CVisioWindow, Paste);
  12925.     if (NULL!=GetIP())
  12926.         hr= GetIP()->Paste();
  12927.     CHECK_HRESULT(hr, CVisioWindow, Paste);
  12928. }
  12929.  
  12930.  
  12931. VW_INLINE void CVisioWindow::Delete()
  12932. {
  12933.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12934.     CHECK_IP(GetIP(), CVisioWindow, Delete);
  12935.     if (NULL!=GetIP())
  12936.         hr= GetIP()->Delete();
  12937.     CHECK_HRESULT(hr, CVisioWindow, Delete);
  12938. }
  12939.  
  12940.  
  12941. VW_INLINE void CVisioWindow::Duplicate()
  12942. {
  12943.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12944.     CHECK_IP(GetIP(), CVisioWindow, Duplicate);
  12945.     if (NULL!=GetIP())
  12946.         hr= GetIP()->Duplicate();
  12947.     CHECK_HRESULT(hr, CVisioWindow, Duplicate);
  12948. }
  12949.  
  12950.  
  12951. VW_INLINE void CVisioWindow::Group()
  12952. {
  12953.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12954.     CHECK_IP(GetIP(), CVisioWindow, Group);
  12955.     if (NULL!=GetIP())
  12956.         hr= GetIP()->Group();
  12957.     CHECK_HRESULT(hr, CVisioWindow, Group);
  12958. }
  12959.  
  12960.  
  12961. VW_INLINE void CVisioWindow::Union()
  12962. {
  12963.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12964.     CHECK_IP(GetIP(), CVisioWindow, Union);
  12965.     if (NULL!=GetIP())
  12966.         hr= GetIP()->Union();
  12967.     CHECK_HRESULT(hr, CVisioWindow, Union);
  12968. }
  12969.  
  12970.  
  12971. VW_INLINE void CVisioWindow::Combine()
  12972. {
  12973.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12974.     CHECK_IP(GetIP(), CVisioWindow, Combine);
  12975.     if (NULL!=GetIP())
  12976.         hr= GetIP()->Combine();
  12977.     CHECK_HRESULT(hr, CVisioWindow, Combine);
  12978. }
  12979.  
  12980.  
  12981. VW_INLINE void CVisioWindow::Fragment()
  12982. {
  12983.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12984.     CHECK_IP(GetIP(), CVisioWindow, Fragment);
  12985.     if (NULL!=GetIP())
  12986.         hr= GetIP()->Fragment();
  12987.     CHECK_HRESULT(hr, CVisioWindow, Fragment);
  12988. }
  12989.  
  12990.  
  12991. VW_INLINE void CVisioWindow::AddToGroup()
  12992. {
  12993.     HRESULT hr= VW_INTERFACE_NOT_SET;
  12994.     CHECK_IP(GetIP(), CVisioWindow, AddToGroup);
  12995.     if (NULL!=GetIP())
  12996.         hr= GetIP()->AddToGroup();
  12997.     CHECK_HRESULT(hr, CVisioWindow, AddToGroup);
  12998. }
  12999.  
  13000.  
  13001. VW_INLINE void CVisioWindow::RemoveFromGroup()
  13002. {
  13003.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13004.     CHECK_IP(GetIP(), CVisioWindow, RemoveFromGroup);
  13005.     if (NULL!=GetIP())
  13006.         hr= GetIP()->RemoveFromGroup();
  13007.     CHECK_HRESULT(hr, CVisioWindow, RemoveFromGroup);
  13008. }
  13009.  
  13010.  
  13011. VW_INLINE short CVisioWindow::SubType()
  13012. {
  13013.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13014.     short ret= 0;
  13015.     CHECK_IP(GetIP(), CVisioWindow, SubType);
  13016.     if (NULL!=GetIP())
  13017.         hr= GetIP()->get_SubType(&ret);
  13018.     CHECK_HRESULT(hr, CVisioWindow, SubType);
  13019.     return ret;
  13020. }
  13021.  
  13022.  
  13023. VW_INLINE void CVisioWindow::Intersect()
  13024. {
  13025.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13026.     CHECK_IP(GetIP(), CVisioWindow, Intersect);
  13027.     if (NULL!=GetIP())
  13028.         hr= GetIP()->Intersect();
  13029.     CHECK_HRESULT(hr, CVisioWindow, Intersect);
  13030. }
  13031.  
  13032.  
  13033. VW_INLINE void CVisioWindow::Subtract()
  13034. {
  13035.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13036.     CHECK_IP(GetIP(), CVisioWindow, Subtract);
  13037.     if (NULL!=GetIP())
  13038.         hr= GetIP()->Subtract();
  13039.     CHECK_HRESULT(hr, CVisioWindow, Subtract);
  13040. }
  13041.  
  13042.  
  13043. VW_INLINE CVisioEventList FAR CVisioWindow::EventList()
  13044. {
  13045.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13046.     IVEventList FAR *lpRet= NULL;
  13047.     CHECK_IP(GetIP(), CVisioWindow, EventList);
  13048.     if (NULL!=GetIP())
  13049.         hr= GetIP()->get_EventList(&lpRet);
  13050.     CHECK_HRESULT(hr, CVisioWindow, EventList);
  13051.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13052. }
  13053.  
  13054.  
  13055. VW_INLINE short CVisioWindow::PersistsEvents()
  13056. {
  13057.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13058.     short ret= 0;
  13059.     CHECK_IP(GetIP(), CVisioWindow, PersistsEvents);
  13060.     if (NULL!=GetIP())
  13061.         hr= GetIP()->get_PersistsEvents(&ret);
  13062.     CHECK_HRESULT(hr, CVisioWindow, PersistsEvents);
  13063.     return ret;
  13064. }
  13065.  
  13066.  
  13067. VW_INLINE short CVisioWindow::WindowHandle()
  13068. {
  13069.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13070.     short ret= 0;
  13071.     CHECK_IP(GetIP(), CVisioWindow, WindowHandle);
  13072.     if (NULL!=GetIP())
  13073.         hr= GetIP()->get_WindowHandle(&ret);
  13074.     CHECK_HRESULT(hr, CVisioWindow, WindowHandle);
  13075.     return ret;
  13076. }
  13077.  
  13078.  
  13079. VW_INLINE long CVisioWindow::WindowHandle32()
  13080. {
  13081.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13082.     long ret= 0;
  13083.     CHECK_IP(GetIP(), CVisioWindow, WindowHandle32);
  13084.     if (NULL!=GetIP())
  13085.         hr= GetIP()->get_WindowHandle32(&ret);
  13086.     CHECK_HRESULT(hr, CVisioWindow, WindowHandle32);
  13087.     return ret;
  13088. }
  13089.  
  13090.  
  13091. VW_INLINE void CVisioWindow::Trim()
  13092. {
  13093.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13094.     CHECK_IP(GetIP(), CVisioWindow, Trim);
  13095.     if (NULL!=GetIP())
  13096.         hr= GetIP()->Trim();
  13097.     CHECK_HRESULT(hr, CVisioWindow, Trim);
  13098. }
  13099.  
  13100.  
  13101. VW_INLINE void CVisioWindow::Join()
  13102. {
  13103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13104.     CHECK_IP(GetIP(), CVisioWindow, Join);
  13105.     if (NULL!=GetIP())
  13106.         hr= GetIP()->Join();
  13107.     CHECK_HRESULT(hr, CVisioWindow, Join);
  13108. }
  13109.  
  13110.  
  13111. VW_INLINE short CVisioWindow::getShowRulers()
  13112. {
  13113.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13114.     short ret= 0;
  13115.     CHECK_IP(GetIP(), CVisioWindow, getShowRulers);
  13116.     if (NULL!=GetIP())
  13117.         hr= GetIP()->get_ShowRulers(&ret);
  13118.     CHECK_HRESULT(hr, CVisioWindow, getShowRulers);
  13119.     return ret;
  13120. }
  13121.  
  13122.  
  13123. VW_INLINE void CVisioWindow::putShowRulers(VW_CONST short param01)
  13124. {
  13125.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13126.     CHECK_IP(GetIP(), CVisioWindow, putShowRulers);
  13127.     if (NULL!=GetIP())
  13128.         hr= GetIP()->put_ShowRulers(param01);
  13129.     CHECK_HRESULT(hr, CVisioWindow, putShowRulers);
  13130. }
  13131.  
  13132.  
  13133. VW_INLINE short CVisioWindow::getShowGrid()
  13134. {
  13135.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13136.     short ret= 0;
  13137.     CHECK_IP(GetIP(), CVisioWindow, getShowGrid);
  13138.     if (NULL!=GetIP())
  13139.         hr= GetIP()->get_ShowGrid(&ret);
  13140.     CHECK_HRESULT(hr, CVisioWindow, getShowGrid);
  13141.     return ret;
  13142. }
  13143.  
  13144.  
  13145. VW_INLINE void CVisioWindow::putShowGrid(VW_CONST short param01)
  13146. {
  13147.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13148.     CHECK_IP(GetIP(), CVisioWindow, putShowGrid);
  13149.     if (NULL!=GetIP())
  13150.         hr= GetIP()->put_ShowGrid(param01);
  13151.     CHECK_HRESULT(hr, CVisioWindow, putShowGrid);
  13152. }
  13153.  
  13154.  
  13155. VW_INLINE short CVisioWindow::getShowGuides()
  13156. {
  13157.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13158.     short ret= 0;
  13159.     CHECK_IP(GetIP(), CVisioWindow, getShowGuides);
  13160.     if (NULL!=GetIP())
  13161.         hr= GetIP()->get_ShowGuides(&ret);
  13162.     CHECK_HRESULT(hr, CVisioWindow, getShowGuides);
  13163.     return ret;
  13164. }
  13165.  
  13166.  
  13167. VW_INLINE void CVisioWindow::putShowGuides(VW_CONST short param01)
  13168. {
  13169.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13170.     CHECK_IP(GetIP(), CVisioWindow, putShowGuides);
  13171.     if (NULL!=GetIP())
  13172.         hr= GetIP()->put_ShowGuides(param01);
  13173.     CHECK_HRESULT(hr, CVisioWindow, putShowGuides);
  13174. }
  13175.  
  13176.  
  13177. VW_INLINE short CVisioWindow::getShowConnectPoints()
  13178. {
  13179.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13180.     short ret= 0;
  13181.     CHECK_IP(GetIP(), CVisioWindow, getShowConnectPoints);
  13182.     if (NULL!=GetIP())
  13183.         hr= GetIP()->get_ShowConnectPoints(&ret);
  13184.     CHECK_HRESULT(hr, CVisioWindow, getShowConnectPoints);
  13185.     return ret;
  13186. }
  13187.  
  13188.  
  13189. VW_INLINE void CVisioWindow::putShowConnectPoints(VW_CONST short param01)
  13190. {
  13191.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13192.     CHECK_IP(GetIP(), CVisioWindow, putShowConnectPoints);
  13193.     if (NULL!=GetIP())
  13194.         hr= GetIP()->put_ShowConnectPoints(param01);
  13195.     CHECK_HRESULT(hr, CVisioWindow, putShowConnectPoints);
  13196. }
  13197.  
  13198.  
  13199. VW_INLINE short CVisioWindow::getShowPageBreaks()
  13200. {
  13201.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13202.     short ret= 0;
  13203.     CHECK_IP(GetIP(), CVisioWindow, getShowPageBreaks);
  13204.     if (NULL!=GetIP())
  13205.         hr= GetIP()->get_ShowPageBreaks(&ret);
  13206.     CHECK_HRESULT(hr, CVisioWindow, getShowPageBreaks);
  13207.     return ret;
  13208. }
  13209.  
  13210.  
  13211. VW_INLINE void CVisioWindow::putShowPageBreaks(VW_CONST short param01)
  13212. {
  13213.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13214.     CHECK_IP(GetIP(), CVisioWindow, putShowPageBreaks);
  13215.     if (NULL!=GetIP())
  13216.         hr= GetIP()->put_ShowPageBreaks(param01);
  13217.     CHECK_HRESULT(hr, CVisioWindow, putShowPageBreaks);
  13218. }
  13219.  
  13220.  
  13221. VW_INLINE VARIANT_HELPER_CLASS FAR CVisioWindow::getPage()
  13222. {
  13223.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13224.     VARIANT ret;
  13225.     VariantInit(&ret);
  13226.     CHECK_IP(GetIP(), CVisioWindow, getPage);
  13227.     if (NULL!=GetIP())
  13228.         hr= GetIP()->get_Page(&ret);
  13229.     CHECK_HRESULT(hr, CVisioWindow, getPage);
  13230.     return VARIANT_HELPER_CLASS(ret);
  13231. }
  13232.  
  13233.  
  13234. VW_INLINE void CVisioWindow::putPage(VW_CONST VARIANT_HELPER_CLASS FAR ¶m01)
  13235. {
  13236.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13237.     CHECK_IP(GetIP(), CVisioWindow, putPage);
  13238.     if (NULL!=GetIP())
  13239.         hr= GetIP()->put_Page(param01);
  13240.     CHECK_HRESULT(hr, CVisioWindow, putPage);
  13241. }
  13242.  
  13243.  
  13244. VW_INLINE void CVisioWindow::DockedStencils(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  13245. {
  13246.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13247.     CHECK_IP(GetIP(), CVisioWindow, DockedStencils);
  13248.     if (NULL!=GetIP())
  13249.         hr= GetIP()->DockedStencils(NameArray);
  13250.     CHECK_HRESULT(hr, CVisioWindow, DockedStencils);
  13251. }
  13252.  
  13253.  
  13254. VW_INLINE VARIANT_HELPER_CLASS FAR CVisioWindow::Master()
  13255. {
  13256.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13257.     VARIANT ret;
  13258.     VariantInit(&ret);
  13259.     CHECK_IP(GetIP(), CVisioWindow, Master);
  13260.     if (NULL!=GetIP())
  13261.         hr= GetIP()->get_Master(&ret);
  13262.     CHECK_HRESULT(hr, CVisioWindow, Master);
  13263.     return VARIANT_HELPER_CLASS(ret);
  13264. }
  13265.  
  13266.  
  13267. VW_INLINE short CVisioWindow::getShowScrollBars()
  13268. {
  13269.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13270.     short ret= 0;
  13271.     CHECK_IP(GetIP(), CVisioWindow, getShowScrollBars);
  13272.     if (NULL!=GetIP())
  13273.         hr= GetIP()->get_ShowScrollBars(&ret);
  13274.     CHECK_HRESULT(hr, CVisioWindow, getShowScrollBars);
  13275.     return ret;
  13276. }
  13277.  
  13278.  
  13279. VW_INLINE void CVisioWindow::putShowScrollBars(VW_CONST short param01)
  13280. {
  13281.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13282.     CHECK_IP(GetIP(), CVisioWindow, putShowScrollBars);
  13283.     if (NULL!=GetIP())
  13284.         hr= GetIP()->put_ShowScrollBars(param01);
  13285.     CHECK_HRESULT(hr, CVisioWindow, putShowScrollBars);
  13286. }
  13287.  
  13288.  
  13289.  
  13290. //  ***************************************************************************
  13291. //  Implementation of class CVisioWindows
  13292.  
  13293. VW_INLINE CVisioApplication FAR CVisioWindows::Application()
  13294. {
  13295.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13296.     IVApplication FAR *lpRet= NULL;
  13297.     CHECK_IP(GetIP(), CVisioWindows, Application);
  13298.     if (NULL!=GetIP())
  13299.         hr= GetIP()->get_Application(&lpRet);
  13300.     CHECK_HRESULT(hr, CVisioWindows, Application);
  13301.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13302. }
  13303.  
  13304.  
  13305. VW_INLINE short CVisioWindows::ObjectType()
  13306. {
  13307.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13308.     short ret= 0;
  13309.     CHECK_IP(GetIP(), CVisioWindows, ObjectType);
  13310.     if (NULL!=GetIP())
  13311.         hr= GetIP()->get_ObjectType(&ret);
  13312.     CHECK_HRESULT(hr, CVisioWindows, ObjectType);
  13313.     return ret;
  13314. }
  13315.  
  13316.  
  13317. VW_INLINE CVisioWindow FAR CVisioWindows::Item(short Index)
  13318. {
  13319.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13320.     IVWindow FAR *lpRet= NULL;
  13321.     CHECK_IP(GetIP(), CVisioWindows, Item);
  13322.     if (NULL!=GetIP())
  13323.         hr= GetIP()->get_Item(Index, &lpRet);
  13324.     CHECK_HRESULT(hr, CVisioWindows, Item);
  13325.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13326. }
  13327.  
  13328.  
  13329. VW_INLINE short CVisioWindows::Count()
  13330. {
  13331.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13332.     short ret= 0;
  13333.     CHECK_IP(GetIP(), CVisioWindows, Count);
  13334.     if (NULL!=GetIP())
  13335.         hr= GetIP()->get_Count(&ret);
  13336.     CHECK_HRESULT(hr, CVisioWindows, Count);
  13337.     return ret;
  13338. }
  13339.  
  13340.  
  13341. VW_INLINE void CVisioWindows::Arrange()
  13342. {
  13343.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13344.     CHECK_IP(GetIP(), CVisioWindows, Arrange);
  13345.     if (NULL!=GetIP())
  13346.         hr= GetIP()->Arrange();
  13347.     CHECK_HRESULT(hr, CVisioWindows, Arrange);
  13348. }
  13349.  
  13350.  
  13351. VW_INLINE CVisioEventList FAR CVisioWindows::EventList()
  13352. {
  13353.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13354.     IVEventList FAR *lpRet= NULL;
  13355.     CHECK_IP(GetIP(), CVisioWindows, EventList);
  13356.     if (NULL!=GetIP())
  13357.         hr= GetIP()->get_EventList(&lpRet);
  13358.     CHECK_HRESULT(hr, CVisioWindows, EventList);
  13359.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13360. }
  13361.  
  13362.  
  13363. VW_INLINE short CVisioWindows::PersistsEvents()
  13364. {
  13365.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13366.     short ret= 0;
  13367.     CHECK_IP(GetIP(), CVisioWindows, PersistsEvents);
  13368.     if (NULL!=GetIP())
  13369.         hr= GetIP()->get_PersistsEvents(&ret);
  13370.     CHECK_HRESULT(hr, CVisioWindows, PersistsEvents);
  13371.     return ret;
  13372. }
  13373.  
  13374.  
  13375.  
  13376. //  ***************************************************************************
  13377. //  Implementation of class CVisioLayer
  13378.  
  13379. VW_INLINE CVisioApplication FAR CVisioLayer::Application()
  13380. {
  13381.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13382.     IVApplication FAR *lpRet= NULL;
  13383.     CHECK_IP(GetIP(), CVisioLayer, Application);
  13384.     if (NULL!=GetIP())
  13385.         hr= GetIP()->get_Application(&lpRet);
  13386.     CHECK_HRESULT(hr, CVisioLayer, Application);
  13387.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13388. }
  13389.  
  13390.  
  13391. VW_INLINE CVisioDocument FAR CVisioLayer::Document()
  13392. {
  13393.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13394.     IVDocument FAR *lpRet= NULL;
  13395.     CHECK_IP(GetIP(), CVisioLayer, Document);
  13396.     if (NULL!=GetIP())
  13397.         hr= GetIP()->get_Document(&lpRet);
  13398.     CHECK_HRESULT(hr, CVisioLayer, Document);
  13399.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13400. }
  13401.  
  13402.  
  13403. VW_INLINE CVisioPage FAR CVisioLayer::Page()
  13404. {
  13405.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13406.     IVPage FAR *lpRet= NULL;
  13407.     CHECK_IP(GetIP(), CVisioLayer, Page);
  13408.     if (NULL!=GetIP())
  13409.         hr= GetIP()->get_Page(&lpRet);
  13410.     CHECK_HRESULT(hr, CVisioLayer, Page);
  13411.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13412. }
  13413.  
  13414.  
  13415. VW_INLINE CVisioMaster FAR CVisioLayer::Master()
  13416. {
  13417.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13418.     IVMaster FAR *lpRet= NULL;
  13419.     CHECK_IP(GetIP(), CVisioLayer, Master);
  13420.     if (NULL!=GetIP())
  13421.         hr= GetIP()->get_Master(&lpRet);
  13422.     CHECK_HRESULT(hr, CVisioLayer, Master);
  13423.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13424. }
  13425.  
  13426.  
  13427. VW_INLINE short CVisioLayer::Index()
  13428. {
  13429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13430.     short ret= 0;
  13431.     CHECK_IP(GetIP(), CVisioLayer, Index);
  13432.     if (NULL!=GetIP())
  13433.         hr= GetIP()->get_Index(&ret);
  13434.     CHECK_HRESULT(hr, CVisioLayer, Index);
  13435.     return ret;
  13436. }
  13437.  
  13438.  
  13439. VW_INLINE short CVisioLayer::Row()
  13440. {
  13441.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13442.     short ret= 0;
  13443.     CHECK_IP(GetIP(), CVisioLayer, Row);
  13444.     if (NULL!=GetIP())
  13445.         hr= GetIP()->get_Row(&ret);
  13446.     CHECK_HRESULT(hr, CVisioLayer, Row);
  13447.     return ret;
  13448. }
  13449.  
  13450.  
  13451. VW_INLINE void CVisioLayer::Add(CVisioShape FAR &SheetObject, short fPresMems)
  13452. {
  13453.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13454.     CHECK_IP(GetIP(), CVisioLayer, Add);
  13455.     if (NULL!=GetIP())
  13456.         hr= GetIP()->Add(SheetObject, fPresMems);
  13457.     CHECK_HRESULT(hr, CVisioLayer, Add);
  13458. }
  13459.  
  13460.  
  13461. VW_INLINE void CVisioLayer::Remove(CVisioShape FAR &SheetObject, short fPresMems)
  13462. {
  13463.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13464.     CHECK_IP(GetIP(), CVisioLayer, Remove);
  13465.     if (NULL!=GetIP())
  13466.         hr= GetIP()->Remove(SheetObject, fPresMems);
  13467.     CHECK_HRESULT(hr, CVisioLayer, Remove);
  13468. }
  13469.  
  13470.  
  13471. VW_INLINE void CVisioLayer::Delete(short fDeleteShapes)
  13472. {
  13473.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13474.     CHECK_IP(GetIP(), CVisioLayer, Delete);
  13475.     if (NULL!=GetIP())
  13476.         hr= GetIP()->Delete(fDeleteShapes);
  13477.     CHECK_HRESULT(hr, CVisioLayer, Delete);
  13478. }
  13479.  
  13480.  
  13481. VW_INLINE BSTR_HELPER_CLASS FAR CVisioLayer::getName()
  13482. {
  13483.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13484.     BSTR ret= 0;
  13485.     CHECK_IP(GetIP(), CVisioLayer, getName);
  13486.     if (NULL!=GetIP())
  13487.         hr= GetIP()->get_Name(&ret);
  13488.     CHECK_HRESULT(hr, CVisioLayer, getName);
  13489.     return BSTR_HELPER_CLASS(ret, TRUE);
  13490. }
  13491.  
  13492.  
  13493. VW_INLINE void CVisioLayer::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  13494. {
  13495.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13496.     CHECK_IP(GetIP(), CVisioLayer, putName);
  13497.     if (NULL!=GetIP())
  13498.         hr= GetIP()->put_Name(param01);
  13499.     CHECK_HRESULT(hr, CVisioLayer, putName);
  13500. }
  13501.  
  13502.  
  13503. VW_INLINE CVisioCell FAR CVisioLayer::CellsC(short Column)
  13504. {
  13505.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13506.     IVCell FAR *lpRet= NULL;
  13507.     CHECK_IP(GetIP(), CVisioLayer, CellsC);
  13508.     if (NULL!=GetIP())
  13509.         hr= GetIP()->get_CellsC(Column, &lpRet);
  13510.     CHECK_HRESULT(hr, CVisioLayer, CellsC);
  13511.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13512. }
  13513.  
  13514.  
  13515. VW_INLINE short CVisioLayer::ObjectType()
  13516. {
  13517.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13518.     short ret= 0;
  13519.     CHECK_IP(GetIP(), CVisioLayer, ObjectType);
  13520.     if (NULL!=GetIP())
  13521.         hr= GetIP()->get_ObjectType(&ret);
  13522.     CHECK_HRESULT(hr, CVisioLayer, ObjectType);
  13523.     return ret;
  13524. }
  13525.  
  13526.  
  13527. VW_INLINE short CVisioLayer::Stat()
  13528. {
  13529.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13530.     short ret= 0;
  13531.     CHECK_IP(GetIP(), CVisioLayer, Stat);
  13532.     if (NULL!=GetIP())
  13533.         hr= GetIP()->get_Stat(&ret);
  13534.     CHECK_HRESULT(hr, CVisioLayer, Stat);
  13535.     return ret;
  13536. }
  13537.  
  13538.  
  13539. VW_INLINE CVisioEventList FAR CVisioLayer::EventList()
  13540. {
  13541.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13542.     IVEventList FAR *lpRet= NULL;
  13543.     CHECK_IP(GetIP(), CVisioLayer, EventList);
  13544.     if (NULL!=GetIP())
  13545.         hr= GetIP()->get_EventList(&lpRet);
  13546.     CHECK_HRESULT(hr, CVisioLayer, EventList);
  13547.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13548. }
  13549.  
  13550.  
  13551. VW_INLINE short CVisioLayer::PersistsEvents()
  13552. {
  13553.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13554.     short ret= 0;
  13555.     CHECK_IP(GetIP(), CVisioLayer, PersistsEvents);
  13556.     if (NULL!=GetIP())
  13557.         hr= GetIP()->get_PersistsEvents(&ret);
  13558.     CHECK_HRESULT(hr, CVisioLayer, PersistsEvents);
  13559.     return ret;
  13560. }
  13561.  
  13562.  
  13563.  
  13564. //  ***************************************************************************
  13565. //  Implementation of class CVisioLayers
  13566.  
  13567. VW_INLINE CVisioApplication FAR CVisioLayers::Application()
  13568. {
  13569.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13570.     IVApplication FAR *lpRet= NULL;
  13571.     CHECK_IP(GetIP(), CVisioLayers, Application);
  13572.     if (NULL!=GetIP())
  13573.         hr= GetIP()->get_Application(&lpRet);
  13574.     CHECK_HRESULT(hr, CVisioLayers, Application);
  13575.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13576. }
  13577.  
  13578.  
  13579. VW_INLINE CVisioDocument FAR CVisioLayers::Document()
  13580. {
  13581.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13582.     IVDocument FAR *lpRet= NULL;
  13583.     CHECK_IP(GetIP(), CVisioLayers, Document);
  13584.     if (NULL!=GetIP())
  13585.         hr= GetIP()->get_Document(&lpRet);
  13586.     CHECK_HRESULT(hr, CVisioLayers, Document);
  13587.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13588. }
  13589.  
  13590.  
  13591. VW_INLINE CVisioPage FAR CVisioLayers::Page()
  13592. {
  13593.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13594.     IVPage FAR *lpRet= NULL;
  13595.     CHECK_IP(GetIP(), CVisioLayers, Page);
  13596.     if (NULL!=GetIP())
  13597.         hr= GetIP()->get_Page(&lpRet);
  13598.     CHECK_HRESULT(hr, CVisioLayers, Page);
  13599.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13600. }
  13601.  
  13602.  
  13603. VW_INLINE CVisioMaster FAR CVisioLayers::Master()
  13604. {
  13605.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13606.     IVMaster FAR *lpRet= NULL;
  13607.     CHECK_IP(GetIP(), CVisioLayers, Master);
  13608.     if (NULL!=GetIP())
  13609.         hr= GetIP()->get_Master(&lpRet);
  13610.     CHECK_HRESULT(hr, CVisioLayers, Master);
  13611.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13612. }
  13613.  
  13614.  
  13615. VW_INLINE short CVisioLayers::Count()
  13616. {
  13617.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13618.     short ret= 0;
  13619.     CHECK_IP(GetIP(), CVisioLayers, Count);
  13620.     if (NULL!=GetIP())
  13621.         hr= GetIP()->get_Count(&ret);
  13622.     CHECK_HRESULT(hr, CVisioLayers, Count);
  13623.     return ret;
  13624. }
  13625.  
  13626.  
  13627. VW_INLINE CVisioLayer FAR CVisioLayers::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  13628. {
  13629.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13630.     IVLayer FAR *lpRet= NULL;
  13631.     CHECK_IP(GetIP(), CVisioLayers, Item);
  13632.     if (NULL!=GetIP())
  13633.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  13634.     CHECK_HRESULT(hr, CVisioLayers, Item);
  13635.     return CVisioLayer(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13636. }
  13637.  
  13638.  
  13639. VW_INLINE CVisioLayer FAR CVisioLayers::Add(BSTR_HELPER_CLASS FAR &LayerName)
  13640. {
  13641.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13642.     IVLayer FAR *lpRet= NULL;
  13643.     CHECK_IP(GetIP(), CVisioLayers, Add);
  13644.     if (NULL!=GetIP())
  13645.         hr= GetIP()->Add(LayerName, &lpRet);
  13646.     CHECK_HRESULT(hr, CVisioLayers, Add);
  13647.     return CVisioLayer(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13648. }
  13649.  
  13650.  
  13651. VW_INLINE short CVisioLayers::ObjectType()
  13652. {
  13653.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13654.     short ret= 0;
  13655.     CHECK_IP(GetIP(), CVisioLayers, ObjectType);
  13656.     if (NULL!=GetIP())
  13657.         hr= GetIP()->get_ObjectType(&ret);
  13658.     CHECK_HRESULT(hr, CVisioLayers, ObjectType);
  13659.     return ret;
  13660. }
  13661.  
  13662.  
  13663. VW_INLINE short CVisioLayers::Stat()
  13664. {
  13665.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13666.     short ret= 0;
  13667.     CHECK_IP(GetIP(), CVisioLayers, Stat);
  13668.     if (NULL!=GetIP())
  13669.         hr= GetIP()->get_Stat(&ret);
  13670.     CHECK_HRESULT(hr, CVisioLayers, Stat);
  13671.     return ret;
  13672. }
  13673.  
  13674.  
  13675. VW_INLINE CVisioEventList FAR CVisioLayers::EventList()
  13676. {
  13677.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13678.     IVEventList FAR *lpRet= NULL;
  13679.     CHECK_IP(GetIP(), CVisioLayers, EventList);
  13680.     if (NULL!=GetIP())
  13681.         hr= GetIP()->get_EventList(&lpRet);
  13682.     CHECK_HRESULT(hr, CVisioLayers, EventList);
  13683.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13684. }
  13685.  
  13686.  
  13687. VW_INLINE short CVisioLayers::PersistsEvents()
  13688. {
  13689.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13690.     short ret= 0;
  13691.     CHECK_IP(GetIP(), CVisioLayers, PersistsEvents);
  13692.     if (NULL!=GetIP())
  13693.         hr= GetIP()->get_PersistsEvents(&ret);
  13694.     CHECK_HRESULT(hr, CVisioLayers, PersistsEvents);
  13695.     return ret;
  13696. }
  13697.  
  13698.  
  13699.  
  13700. //  ***************************************************************************
  13701. //  Implementation of class CVisioFont
  13702.  
  13703. VW_INLINE CVisioApplication FAR CVisioFont::Application()
  13704. {
  13705.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13706.     IVApplication FAR *lpRet= NULL;
  13707.     CHECK_IP(GetIP(), CVisioFont, Application);
  13708.     if (NULL!=GetIP())
  13709.         hr= GetIP()->get_Application(&lpRet);
  13710.     CHECK_HRESULT(hr, CVisioFont, Application);
  13711.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13712. }
  13713.  
  13714.  
  13715. VW_INLINE CVisioDocument FAR CVisioFont::Document()
  13716. {
  13717.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13718.     IVDocument FAR *lpRet= NULL;
  13719.     CHECK_IP(GetIP(), CVisioFont, Document);
  13720.     if (NULL!=GetIP())
  13721.         hr= GetIP()->get_Document(&lpRet);
  13722.     CHECK_HRESULT(hr, CVisioFont, Document);
  13723.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13724. }
  13725.  
  13726.  
  13727. VW_INLINE short CVisioFont::Index()
  13728. {
  13729.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13730.     short ret= 0;
  13731.     CHECK_IP(GetIP(), CVisioFont, Index);
  13732.     if (NULL!=GetIP())
  13733.         hr= GetIP()->get_Index(&ret);
  13734.     CHECK_HRESULT(hr, CVisioFont, Index);
  13735.     return ret;
  13736. }
  13737.  
  13738.  
  13739. VW_INLINE BSTR_HELPER_CLASS FAR CVisioFont::Name()
  13740. {
  13741.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13742.     BSTR ret= 0;
  13743.     CHECK_IP(GetIP(), CVisioFont, Name);
  13744.     if (NULL!=GetIP())
  13745.         hr= GetIP()->get_Name(&ret);
  13746.     CHECK_HRESULT(hr, CVisioFont, Name);
  13747.     return BSTR_HELPER_CLASS(ret, TRUE);
  13748. }
  13749.  
  13750.  
  13751. VW_INLINE short CVisioFont::ID()
  13752. {
  13753.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13754.     short ret= 0;
  13755.     CHECK_IP(GetIP(), CVisioFont, ID);
  13756.     if (NULL!=GetIP())
  13757.         hr= GetIP()->get_ID(&ret);
  13758.     CHECK_HRESULT(hr, CVisioFont, ID);
  13759.     return ret;
  13760. }
  13761.  
  13762.  
  13763. VW_INLINE short CVisioFont::Attributes()
  13764. {
  13765.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13766.     short ret= 0;
  13767.     CHECK_IP(GetIP(), CVisioFont, Attributes);
  13768.     if (NULL!=GetIP())
  13769.         hr= GetIP()->get_Attributes(&ret);
  13770.     CHECK_HRESULT(hr, CVisioFont, Attributes);
  13771.     return ret;
  13772. }
  13773.  
  13774.  
  13775. VW_INLINE short CVisioFont::CharSet()
  13776. {
  13777.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13778.     short ret= 0;
  13779.     CHECK_IP(GetIP(), CVisioFont, CharSet);
  13780.     if (NULL!=GetIP())
  13781.         hr= GetIP()->get_CharSet(&ret);
  13782.     CHECK_HRESULT(hr, CVisioFont, CharSet);
  13783.     return ret;
  13784. }
  13785.  
  13786.  
  13787. VW_INLINE short CVisioFont::PitchAndFamily()
  13788. {
  13789.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13790.     short ret= 0;
  13791.     CHECK_IP(GetIP(), CVisioFont, PitchAndFamily);
  13792.     if (NULL!=GetIP())
  13793.         hr= GetIP()->get_PitchAndFamily(&ret);
  13794.     CHECK_HRESULT(hr, CVisioFont, PitchAndFamily);
  13795.     return ret;
  13796. }
  13797.  
  13798.  
  13799. VW_INLINE short CVisioFont::ObjectType()
  13800. {
  13801.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13802.     short ret= 0;
  13803.     CHECK_IP(GetIP(), CVisioFont, ObjectType);
  13804.     if (NULL!=GetIP())
  13805.         hr= GetIP()->get_ObjectType(&ret);
  13806.     CHECK_HRESULT(hr, CVisioFont, ObjectType);
  13807.     return ret;
  13808. }
  13809.  
  13810.  
  13811. VW_INLINE short CVisioFont::Stat()
  13812. {
  13813.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13814.     short ret= 0;
  13815.     CHECK_IP(GetIP(), CVisioFont, Stat);
  13816.     if (NULL!=GetIP())
  13817.         hr= GetIP()->get_Stat(&ret);
  13818.     CHECK_HRESULT(hr, CVisioFont, Stat);
  13819.     return ret;
  13820. }
  13821.  
  13822.  
  13823.  
  13824. //  ***************************************************************************
  13825. //  Implementation of class CVisioFonts
  13826.  
  13827. VW_INLINE CVisioApplication FAR CVisioFonts::Application()
  13828. {
  13829.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13830.     IVApplication FAR *lpRet= NULL;
  13831.     CHECK_IP(GetIP(), CVisioFonts, Application);
  13832.     if (NULL!=GetIP())
  13833.         hr= GetIP()->get_Application(&lpRet);
  13834.     CHECK_HRESULT(hr, CVisioFonts, Application);
  13835.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13836. }
  13837.  
  13838.  
  13839. VW_INLINE CVisioDocument FAR CVisioFonts::Document()
  13840. {
  13841.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13842.     IVDocument FAR *lpRet= NULL;
  13843.     CHECK_IP(GetIP(), CVisioFonts, Document);
  13844.     if (NULL!=GetIP())
  13845.         hr= GetIP()->get_Document(&lpRet);
  13846.     CHECK_HRESULT(hr, CVisioFonts, Document);
  13847.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13848. }
  13849.  
  13850.  
  13851. VW_INLINE short CVisioFonts::Count()
  13852. {
  13853.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13854.     short ret= 0;
  13855.     CHECK_IP(GetIP(), CVisioFonts, Count);
  13856.     if (NULL!=GetIP())
  13857.         hr= GetIP()->get_Count(&ret);
  13858.     CHECK_HRESULT(hr, CVisioFonts, Count);
  13859.     return ret;
  13860. }
  13861.  
  13862.  
  13863. VW_INLINE CVisioFont FAR CVisioFonts::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  13864. {
  13865.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13866.     IVFont FAR *lpRet= NULL;
  13867.     CHECK_IP(GetIP(), CVisioFonts, Item);
  13868.     if (NULL!=GetIP())
  13869.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  13870.     CHECK_HRESULT(hr, CVisioFonts, Item);
  13871.     return CVisioFont(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13872. }
  13873.  
  13874.  
  13875. VW_INLINE CVisioFont FAR CVisioFonts::ItemFromID(long ObjectID)
  13876. {
  13877.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13878.     IVFont FAR *lpRet= NULL;
  13879.     CHECK_IP(GetIP(), CVisioFonts, ItemFromID);
  13880.     if (NULL!=GetIP())
  13881.         hr= GetIP()->get_ItemFromID(ObjectID, &lpRet);
  13882.     CHECK_HRESULT(hr, CVisioFonts, ItemFromID);
  13883.     return CVisioFont(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13884. }
  13885.  
  13886.  
  13887. VW_INLINE short CVisioFonts::ObjectType()
  13888. {
  13889.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13890.     short ret= 0;
  13891.     CHECK_IP(GetIP(), CVisioFonts, ObjectType);
  13892.     if (NULL!=GetIP())
  13893.         hr= GetIP()->get_ObjectType(&ret);
  13894.     CHECK_HRESULT(hr, CVisioFonts, ObjectType);
  13895.     return ret;
  13896. }
  13897.  
  13898.  
  13899. VW_INLINE short CVisioFonts::Stat()
  13900. {
  13901.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13902.     short ret= 0;
  13903.     CHECK_IP(GetIP(), CVisioFonts, Stat);
  13904.     if (NULL!=GetIP())
  13905.         hr= GetIP()->get_Stat(&ret);
  13906.     CHECK_HRESULT(hr, CVisioFonts, Stat);
  13907.     return ret;
  13908. }
  13909.  
  13910.  
  13911.  
  13912. //  ***************************************************************************
  13913. //  Implementation of class CVisioColor
  13914.  
  13915. VW_INLINE CVisioApplication FAR CVisioColor::Application()
  13916. {
  13917.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13918.     IVApplication FAR *lpRet= NULL;
  13919.     CHECK_IP(GetIP(), CVisioColor, Application);
  13920.     if (NULL!=GetIP())
  13921.         hr= GetIP()->get_Application(&lpRet);
  13922.     CHECK_HRESULT(hr, CVisioColor, Application);
  13923.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13924. }
  13925.  
  13926.  
  13927. VW_INLINE CVisioDocument FAR CVisioColor::Document()
  13928. {
  13929.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13930.     IVDocument FAR *lpRet= NULL;
  13931.     CHECK_IP(GetIP(), CVisioColor, Document);
  13932.     if (NULL!=GetIP())
  13933.         hr= GetIP()->get_Document(&lpRet);
  13934.     CHECK_HRESULT(hr, CVisioColor, Document);
  13935.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  13936. }
  13937.  
  13938.  
  13939. VW_INLINE short CVisioColor::Index()
  13940. {
  13941.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13942.     short ret= 0;
  13943.     CHECK_IP(GetIP(), CVisioColor, Index);
  13944.     if (NULL!=GetIP())
  13945.         hr= GetIP()->get_Index(&ret);
  13946.     CHECK_HRESULT(hr, CVisioColor, Index);
  13947.     return ret;
  13948. }
  13949.  
  13950.  
  13951. VW_INLINE short CVisioColor::getRed()
  13952. {
  13953.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13954.     short ret= 0;
  13955.     CHECK_IP(GetIP(), CVisioColor, getRed);
  13956.     if (NULL!=GetIP())
  13957.         hr= GetIP()->get_Red(&ret);
  13958.     CHECK_HRESULT(hr, CVisioColor, getRed);
  13959.     return ret;
  13960. }
  13961.  
  13962.  
  13963. VW_INLINE void CVisioColor::putRed(VW_CONST short param01)
  13964. {
  13965.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13966.     CHECK_IP(GetIP(), CVisioColor, putRed);
  13967.     if (NULL!=GetIP())
  13968.         hr= GetIP()->put_Red(param01);
  13969.     CHECK_HRESULT(hr, CVisioColor, putRed);
  13970. }
  13971.  
  13972.  
  13973. VW_INLINE short CVisioColor::getGreen()
  13974. {
  13975.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13976.     short ret= 0;
  13977.     CHECK_IP(GetIP(), CVisioColor, getGreen);
  13978.     if (NULL!=GetIP())
  13979.         hr= GetIP()->get_Green(&ret);
  13980.     CHECK_HRESULT(hr, CVisioColor, getGreen);
  13981.     return ret;
  13982. }
  13983.  
  13984.  
  13985. VW_INLINE void CVisioColor::putGreen(VW_CONST short param01)
  13986. {
  13987.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13988.     CHECK_IP(GetIP(), CVisioColor, putGreen);
  13989.     if (NULL!=GetIP())
  13990.         hr= GetIP()->put_Green(param01);
  13991.     CHECK_HRESULT(hr, CVisioColor, putGreen);
  13992. }
  13993.  
  13994.  
  13995. VW_INLINE short CVisioColor::getBlue()
  13996. {
  13997.     HRESULT hr= VW_INTERFACE_NOT_SET;
  13998.     short ret= 0;
  13999.     CHECK_IP(GetIP(), CVisioColor, getBlue);
  14000.     if (NULL!=GetIP())
  14001.         hr= GetIP()->get_Blue(&ret);
  14002.     CHECK_HRESULT(hr, CVisioColor, getBlue);
  14003.     return ret;
  14004. }
  14005.  
  14006.  
  14007. VW_INLINE void CVisioColor::putBlue(VW_CONST short param01)
  14008. {
  14009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14010.     CHECK_IP(GetIP(), CVisioColor, putBlue);
  14011.     if (NULL!=GetIP())
  14012.         hr= GetIP()->put_Blue(param01);
  14013.     CHECK_HRESULT(hr, CVisioColor, putBlue);
  14014. }
  14015.  
  14016.  
  14017. VW_INLINE short CVisioColor::getFlags()
  14018. {
  14019.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14020.     short ret= 0;
  14021.     CHECK_IP(GetIP(), CVisioColor, getFlags);
  14022.     if (NULL!=GetIP())
  14023.         hr= GetIP()->get_Flags(&ret);
  14024.     CHECK_HRESULT(hr, CVisioColor, getFlags);
  14025.     return ret;
  14026. }
  14027.  
  14028.  
  14029. VW_INLINE void CVisioColor::putFlags(VW_CONST short param01)
  14030. {
  14031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14032.     CHECK_IP(GetIP(), CVisioColor, putFlags);
  14033.     if (NULL!=GetIP())
  14034.         hr= GetIP()->put_Flags(param01);
  14035.     CHECK_HRESULT(hr, CVisioColor, putFlags);
  14036. }
  14037.  
  14038.  
  14039. VW_INLINE long CVisioColor::getPaletteEntry()
  14040. {
  14041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14042.     long ret= 0;
  14043.     CHECK_IP(GetIP(), CVisioColor, getPaletteEntry);
  14044.     if (NULL!=GetIP())
  14045.         hr= GetIP()->get_PaletteEntry(&ret);
  14046.     CHECK_HRESULT(hr, CVisioColor, getPaletteEntry);
  14047.     return ret;
  14048. }
  14049.  
  14050.  
  14051. VW_INLINE void CVisioColor::putPaletteEntry(VW_CONST long param01)
  14052. {
  14053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14054.     CHECK_IP(GetIP(), CVisioColor, putPaletteEntry);
  14055.     if (NULL!=GetIP())
  14056.         hr= GetIP()->put_PaletteEntry(param01);
  14057.     CHECK_HRESULT(hr, CVisioColor, putPaletteEntry);
  14058. }
  14059.  
  14060.  
  14061. VW_INLINE short CVisioColor::ObjectType()
  14062. {
  14063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14064.     short ret= 0;
  14065.     CHECK_IP(GetIP(), CVisioColor, ObjectType);
  14066.     if (NULL!=GetIP())
  14067.         hr= GetIP()->get_ObjectType(&ret);
  14068.     CHECK_HRESULT(hr, CVisioColor, ObjectType);
  14069.     return ret;
  14070. }
  14071.  
  14072.  
  14073. VW_INLINE short CVisioColor::Stat()
  14074. {
  14075.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14076.     short ret= 0;
  14077.     CHECK_IP(GetIP(), CVisioColor, Stat);
  14078.     if (NULL!=GetIP())
  14079.         hr= GetIP()->get_Stat(&ret);
  14080.     CHECK_HRESULT(hr, CVisioColor, Stat);
  14081.     return ret;
  14082. }
  14083.  
  14084.  
  14085.  
  14086. //  ***************************************************************************
  14087. //  Implementation of class CVisioColors
  14088.  
  14089. VW_INLINE CVisioApplication FAR CVisioColors::Application()
  14090. {
  14091.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14092.     IVApplication FAR *lpRet= NULL;
  14093.     CHECK_IP(GetIP(), CVisioColors, Application);
  14094.     if (NULL!=GetIP())
  14095.         hr= GetIP()->get_Application(&lpRet);
  14096.     CHECK_HRESULT(hr, CVisioColors, Application);
  14097.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14098. }
  14099.  
  14100.  
  14101. VW_INLINE CVisioDocument FAR CVisioColors::Document()
  14102. {
  14103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14104.     IVDocument FAR *lpRet= NULL;
  14105.     CHECK_IP(GetIP(), CVisioColors, Document);
  14106.     if (NULL!=GetIP())
  14107.         hr= GetIP()->get_Document(&lpRet);
  14108.     CHECK_HRESULT(hr, CVisioColors, Document);
  14109.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14110. }
  14111.  
  14112.  
  14113. VW_INLINE short CVisioColors::Count()
  14114. {
  14115.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14116.     short ret= 0;
  14117.     CHECK_IP(GetIP(), CVisioColors, Count);
  14118.     if (NULL!=GetIP())
  14119.         hr= GetIP()->get_Count(&ret);
  14120.     CHECK_HRESULT(hr, CVisioColors, Count);
  14121.     return ret;
  14122. }
  14123.  
  14124.  
  14125. VW_INLINE CVisioColor FAR CVisioColors::Item(short Index)
  14126. {
  14127.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14128.     IVColor FAR *lpRet= NULL;
  14129.     CHECK_IP(GetIP(), CVisioColors, Item);
  14130.     if (NULL!=GetIP())
  14131.         hr= GetIP()->get_Item(Index, &lpRet);
  14132.     CHECK_HRESULT(hr, CVisioColors, Item);
  14133.     return CVisioColor(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14134. }
  14135.  
  14136.  
  14137. VW_INLINE short CVisioColors::ObjectType()
  14138. {
  14139.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14140.     short ret= 0;
  14141.     CHECK_IP(GetIP(), CVisioColors, ObjectType);
  14142.     if (NULL!=GetIP())
  14143.         hr= GetIP()->get_ObjectType(&ret);
  14144.     CHECK_HRESULT(hr, CVisioColors, ObjectType);
  14145.     return ret;
  14146. }
  14147.  
  14148.  
  14149. VW_INLINE short CVisioColors::Stat()
  14150. {
  14151.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14152.     short ret= 0;
  14153.     CHECK_IP(GetIP(), CVisioColors, Stat);
  14154.     if (NULL!=GetIP())
  14155.         hr= GetIP()->get_Stat(&ret);
  14156.     CHECK_HRESULT(hr, CVisioColors, Stat);
  14157.     return ret;
  14158. }
  14159.  
  14160.  
  14161.  
  14162. //  ***************************************************************************
  14163. //  Implementation of class CVisioAddon
  14164.  
  14165. VW_INLINE CVisioApplication FAR CVisioAddon::Application()
  14166. {
  14167.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14168.     IVApplication FAR *lpRet= NULL;
  14169.     CHECK_IP(GetIP(), CVisioAddon, Application);
  14170.     if (NULL!=GetIP())
  14171.         hr= GetIP()->get_Application(&lpRet);
  14172.     CHECK_HRESULT(hr, CVisioAddon, Application);
  14173.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14174. }
  14175.  
  14176.  
  14177. VW_INLINE short CVisioAddon::ObjectType()
  14178. {
  14179.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14180.     short ret= 0;
  14181.     CHECK_IP(GetIP(), CVisioAddon, ObjectType);
  14182.     if (NULL!=GetIP())
  14183.         hr= GetIP()->get_ObjectType(&ret);
  14184.     CHECK_HRESULT(hr, CVisioAddon, ObjectType);
  14185.     return ret;
  14186. }
  14187.  
  14188.  
  14189. VW_INLINE BSTR_HELPER_CLASS FAR CVisioAddon::Name()
  14190. {
  14191.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14192.     BSTR ret= 0;
  14193.     CHECK_IP(GetIP(), CVisioAddon, Name);
  14194.     if (NULL!=GetIP())
  14195.         hr= GetIP()->get_Name(&ret);
  14196.     CHECK_HRESULT(hr, CVisioAddon, Name);
  14197.     return BSTR_HELPER_CLASS(ret, TRUE);
  14198. }
  14199.  
  14200.  
  14201. VW_INLINE short CVisioAddon::Index()
  14202. {
  14203.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14204.     short ret= 0;
  14205.     CHECK_IP(GetIP(), CVisioAddon, Index);
  14206.     if (NULL!=GetIP())
  14207.         hr= GetIP()->get_Index(&ret);
  14208.     CHECK_HRESULT(hr, CVisioAddon, Index);
  14209.     return ret;
  14210. }
  14211.  
  14212.  
  14213. VW_INLINE short CVisioAddon::Enabled()
  14214. {
  14215.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14216.     short ret= 0;
  14217.     CHECK_IP(GetIP(), CVisioAddon, Enabled);
  14218.     if (NULL!=GetIP())
  14219.         hr= GetIP()->get_Enabled(&ret);
  14220.     CHECK_HRESULT(hr, CVisioAddon, Enabled);
  14221.     return ret;
  14222. }
  14223.  
  14224.  
  14225. VW_INLINE void CVisioAddon::Run(BSTR_HELPER_CLASS FAR &ArgString)
  14226. {
  14227.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14228.     CHECK_IP(GetIP(), CVisioAddon, Run);
  14229.     if (NULL!=GetIP())
  14230.         hr= GetIP()->Run(ArgString);
  14231.     CHECK_HRESULT(hr, CVisioAddon, Run);
  14232. }
  14233.  
  14234.  
  14235.  
  14236. //  ***************************************************************************
  14237. //  Implementation of class CVisioAddons
  14238.  
  14239. VW_INLINE CVisioApplication FAR CVisioAddons::Application()
  14240. {
  14241.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14242.     IVApplication FAR *lpRet= NULL;
  14243.     CHECK_IP(GetIP(), CVisioAddons, Application);
  14244.     if (NULL!=GetIP())
  14245.         hr= GetIP()->get_Application(&lpRet);
  14246.     CHECK_HRESULT(hr, CVisioAddons, Application);
  14247.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14248. }
  14249.  
  14250.  
  14251. VW_INLINE short CVisioAddons::ObjectType()
  14252. {
  14253.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14254.     short ret= 0;
  14255.     CHECK_IP(GetIP(), CVisioAddons, ObjectType);
  14256.     if (NULL!=GetIP())
  14257.         hr= GetIP()->get_ObjectType(&ret);
  14258.     CHECK_HRESULT(hr, CVisioAddons, ObjectType);
  14259.     return ret;
  14260. }
  14261.  
  14262.  
  14263. VW_INLINE CVisioAddon FAR CVisioAddons::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  14264. {
  14265.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14266.     IVAddon FAR *lpRet= NULL;
  14267.     CHECK_IP(GetIP(), CVisioAddons, Item);
  14268.     if (NULL!=GetIP())
  14269.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  14270.     CHECK_HRESULT(hr, CVisioAddons, Item);
  14271.     return CVisioAddon(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14272. }
  14273.  
  14274.  
  14275. VW_INLINE short CVisioAddons::Count()
  14276. {
  14277.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14278.     short ret= 0;
  14279.     CHECK_IP(GetIP(), CVisioAddons, Count);
  14280.     if (NULL!=GetIP())
  14281.         hr= GetIP()->get_Count(&ret);
  14282.     CHECK_HRESULT(hr, CVisioAddons, Count);
  14283.     return ret;
  14284. }
  14285.  
  14286.  
  14287. VW_INLINE CVisioAddon FAR CVisioAddons::Add(BSTR_HELPER_CLASS FAR &FileName)
  14288. {
  14289.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14290.     IVAddon FAR *lpRet= NULL;
  14291.     CHECK_IP(GetIP(), CVisioAddons, Add);
  14292.     if (NULL!=GetIP())
  14293.         hr= GetIP()->Add(FileName, &lpRet);
  14294.     CHECK_HRESULT(hr, CVisioAddons, Add);
  14295.     return CVisioAddon(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14296. }
  14297.  
  14298.  
  14299. VW_INLINE void CVisioAddons::GetNames(/*BSTR*/ SAFEARRAY FAR * FAR *NameArray)
  14300. {
  14301.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14302.     CHECK_IP(GetIP(), CVisioAddons, GetNames);
  14303.     if (NULL!=GetIP())
  14304.         hr= GetIP()->GetNames(NameArray);
  14305.     CHECK_HRESULT(hr, CVisioAddons, GetNames);
  14306. }
  14307.  
  14308.  
  14309.  
  14310. //  ***************************************************************************
  14311. //  Implementation of class CVisioEvent
  14312.  
  14313. VW_INLINE CVisioApplication FAR CVisioEvent::Application()
  14314. {
  14315.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14316.     IVApplication FAR *lpRet= NULL;
  14317.     CHECK_IP(GetIP(), CVisioEvent, Application);
  14318.     if (NULL!=GetIP())
  14319.         hr= GetIP()->get_Application(&lpRet);
  14320.     CHECK_HRESULT(hr, CVisioEvent, Application);
  14321.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14322. }
  14323.  
  14324.  
  14325. VW_INLINE CVisioEventList FAR CVisioEvent::EventList()
  14326. {
  14327.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14328.     IVEventList FAR *lpRet= NULL;
  14329.     CHECK_IP(GetIP(), CVisioEvent, EventList);
  14330.     if (NULL!=GetIP())
  14331.         hr= GetIP()->get_EventList(&lpRet);
  14332.     CHECK_HRESULT(hr, CVisioEvent, EventList);
  14333.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14334. }
  14335.  
  14336.  
  14337. VW_INLINE short CVisioEvent::Index()
  14338. {
  14339.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14340.     short ret= 0;
  14341.     CHECK_IP(GetIP(), CVisioEvent, Index);
  14342.     if (NULL!=GetIP())
  14343.         hr= GetIP()->get_Index(&ret);
  14344.     CHECK_HRESULT(hr, CVisioEvent, Index);
  14345.     return ret;
  14346. }
  14347.  
  14348.  
  14349. VW_INLINE short CVisioEvent::getEvent()
  14350. {
  14351.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14352.     short ret= 0;
  14353.     CHECK_IP(GetIP(), CVisioEvent, getEvent);
  14354.     if (NULL!=GetIP())
  14355.         hr= GetIP()->get_Event(&ret);
  14356.     CHECK_HRESULT(hr, CVisioEvent, getEvent);
  14357.     return ret;
  14358. }
  14359.  
  14360.  
  14361. VW_INLINE void CVisioEvent::putEvent(VW_CONST short param01)
  14362. {
  14363.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14364.     CHECK_IP(GetIP(), CVisioEvent, putEvent);
  14365.     if (NULL!=GetIP())
  14366.         hr= GetIP()->put_Event(param01);
  14367.     CHECK_HRESULT(hr, CVisioEvent, putEvent);
  14368. }
  14369.  
  14370.  
  14371. VW_INLINE short CVisioEvent::getAction()
  14372. {
  14373.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14374.     short ret= 0;
  14375.     CHECK_IP(GetIP(), CVisioEvent, getAction);
  14376.     if (NULL!=GetIP())
  14377.         hr= GetIP()->get_Action(&ret);
  14378.     CHECK_HRESULT(hr, CVisioEvent, getAction);
  14379.     return ret;
  14380. }
  14381.  
  14382.  
  14383. VW_INLINE void CVisioEvent::putAction(VW_CONST short param01)
  14384. {
  14385.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14386.     CHECK_IP(GetIP(), CVisioEvent, putAction);
  14387.     if (NULL!=GetIP())
  14388.         hr= GetIP()->put_Action(param01);
  14389.     CHECK_HRESULT(hr, CVisioEvent, putAction);
  14390. }
  14391.  
  14392.  
  14393. VW_INLINE BSTR_HELPER_CLASS FAR CVisioEvent::getTarget()
  14394. {
  14395.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14396.     BSTR ret= 0;
  14397.     CHECK_IP(GetIP(), CVisioEvent, getTarget);
  14398.     if (NULL!=GetIP())
  14399.         hr= GetIP()->get_Target(&ret);
  14400.     CHECK_HRESULT(hr, CVisioEvent, getTarget);
  14401.     return BSTR_HELPER_CLASS(ret, TRUE);
  14402. }
  14403.  
  14404.  
  14405. VW_INLINE void CVisioEvent::putTarget(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14406. {
  14407.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14408.     CHECK_IP(GetIP(), CVisioEvent, putTarget);
  14409.     if (NULL!=GetIP())
  14410.         hr= GetIP()->put_Target(param01);
  14411.     CHECK_HRESULT(hr, CVisioEvent, putTarget);
  14412. }
  14413.  
  14414.  
  14415. VW_INLINE BSTR_HELPER_CLASS FAR CVisioEvent::getTargetArgs()
  14416. {
  14417.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14418.     BSTR ret= 0;
  14419.     CHECK_IP(GetIP(), CVisioEvent, getTargetArgs);
  14420.     if (NULL!=GetIP())
  14421.         hr= GetIP()->get_TargetArgs(&ret);
  14422.     CHECK_HRESULT(hr, CVisioEvent, getTargetArgs);
  14423.     return BSTR_HELPER_CLASS(ret, TRUE);
  14424. }
  14425.  
  14426.  
  14427. VW_INLINE void CVisioEvent::putTargetArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14428. {
  14429.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14430.     CHECK_IP(GetIP(), CVisioEvent, putTargetArgs);
  14431.     if (NULL!=GetIP())
  14432.         hr= GetIP()->put_TargetArgs(param01);
  14433.     CHECK_HRESULT(hr, CVisioEvent, putTargetArgs);
  14434. }
  14435.  
  14436.  
  14437. VW_INLINE void CVisioEvent::Trigger(BSTR_HELPER_CLASS FAR &ContextString)
  14438. {
  14439.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14440.     CHECK_IP(GetIP(), CVisioEvent, Trigger);
  14441.     if (NULL!=GetIP())
  14442.         hr= GetIP()->Trigger(ContextString);
  14443.     CHECK_HRESULT(hr, CVisioEvent, Trigger);
  14444. }
  14445.  
  14446.  
  14447. VW_INLINE void CVisioEvent::Delete()
  14448. {
  14449.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14450.     CHECK_IP(GetIP(), CVisioEvent, Delete);
  14451.     if (NULL!=GetIP())
  14452.         hr= GetIP()->Delete();
  14453.     CHECK_HRESULT(hr, CVisioEvent, Delete);
  14454. }
  14455.  
  14456.  
  14457. VW_INLINE short CVisioEvent::ObjectType()
  14458. {
  14459.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14460.     short ret= 0;
  14461.     CHECK_IP(GetIP(), CVisioEvent, ObjectType);
  14462.     if (NULL!=GetIP())
  14463.         hr= GetIP()->get_ObjectType(&ret);
  14464.     CHECK_HRESULT(hr, CVisioEvent, ObjectType);
  14465.     return ret;
  14466. }
  14467.  
  14468.  
  14469. VW_INLINE long CVisioEvent::ID()
  14470. {
  14471.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14472.     long ret= 0;
  14473.     CHECK_IP(GetIP(), CVisioEvent, ID);
  14474.     if (NULL!=GetIP())
  14475.         hr= GetIP()->get_ID(&ret);
  14476.     CHECK_HRESULT(hr, CVisioEvent, ID);
  14477.     return ret;
  14478. }
  14479.  
  14480.  
  14481. VW_INLINE short CVisioEvent::getEnabled()
  14482. {
  14483.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14484.     short ret= 0;
  14485.     CHECK_IP(GetIP(), CVisioEvent, getEnabled);
  14486.     if (NULL!=GetIP())
  14487.         hr= GetIP()->get_Enabled(&ret);
  14488.     CHECK_HRESULT(hr, CVisioEvent, getEnabled);
  14489.     return ret;
  14490. }
  14491.  
  14492.  
  14493. VW_INLINE void CVisioEvent::putEnabled(VW_CONST short param01)
  14494. {
  14495.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14496.     CHECK_IP(GetIP(), CVisioEvent, putEnabled);
  14497.     if (NULL!=GetIP())
  14498.         hr= GetIP()->put_Enabled(param01);
  14499.     CHECK_HRESULT(hr, CVisioEvent, putEnabled);
  14500. }
  14501.  
  14502.  
  14503. VW_INLINE short CVisioEvent::Persistable()
  14504. {
  14505.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14506.     short ret= 0;
  14507.     CHECK_IP(GetIP(), CVisioEvent, Persistable);
  14508.     if (NULL!=GetIP())
  14509.         hr= GetIP()->get_Persistable(&ret);
  14510.     CHECK_HRESULT(hr, CVisioEvent, Persistable);
  14511.     return ret;
  14512. }
  14513.  
  14514.  
  14515. VW_INLINE short CVisioEvent::getPersistent()
  14516. {
  14517.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14518.     short ret= 0;
  14519.     CHECK_IP(GetIP(), CVisioEvent, getPersistent);
  14520.     if (NULL!=GetIP())
  14521.         hr= GetIP()->get_Persistent(&ret);
  14522.     CHECK_HRESULT(hr, CVisioEvent, getPersistent);
  14523.     return ret;
  14524. }
  14525.  
  14526.  
  14527. VW_INLINE void CVisioEvent::putPersistent(VW_CONST short param01)
  14528. {
  14529.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14530.     CHECK_IP(GetIP(), CVisioEvent, putPersistent);
  14531.     if (NULL!=GetIP())
  14532.         hr= GetIP()->put_Persistent(param01);
  14533.     CHECK_HRESULT(hr, CVisioEvent, putPersistent);
  14534. }
  14535.  
  14536.  
  14537.  
  14538. //  ***************************************************************************
  14539. //  Implementation of class CVisioEventList
  14540.  
  14541. VW_INLINE CVisioApplication FAR CVisioEventList::Application()
  14542. {
  14543.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14544.     IVApplication FAR *lpRet= NULL;
  14545.     CHECK_IP(GetIP(), CVisioEventList, Application);
  14546.     if (NULL!=GetIP())
  14547.         hr= GetIP()->get_Application(&lpRet);
  14548.     CHECK_HRESULT(hr, CVisioEventList, Application);
  14549.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14550. }
  14551.  
  14552.  
  14553. VW_INLINE short CVisioEventList::ObjectType()
  14554. {
  14555.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14556.     short ret= 0;
  14557.     CHECK_IP(GetIP(), CVisioEventList, ObjectType);
  14558.     if (NULL!=GetIP())
  14559.         hr= GetIP()->get_ObjectType(&ret);
  14560.     CHECK_HRESULT(hr, CVisioEventList, ObjectType);
  14561.     return ret;
  14562. }
  14563.  
  14564.  
  14565. VW_INLINE CVisioEvent FAR CVisioEventList::Item(short Index)
  14566. {
  14567.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14568.     IVEvent FAR *lpRet= NULL;
  14569.     CHECK_IP(GetIP(), CVisioEventList, Item);
  14570.     if (NULL!=GetIP())
  14571.         hr= GetIP()->get_Item(Index, &lpRet);
  14572.     CHECK_HRESULT(hr, CVisioEventList, Item);
  14573.     return CVisioEvent(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14574. }
  14575.  
  14576.  
  14577. VW_INLINE short CVisioEventList::Count()
  14578. {
  14579.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14580.     short ret= 0;
  14581.     CHECK_IP(GetIP(), CVisioEventList, Count);
  14582.     if (NULL!=GetIP())
  14583.         hr= GetIP()->get_Count(&ret);
  14584.     CHECK_HRESULT(hr, CVisioEventList, Count);
  14585.     return ret;
  14586. }
  14587.  
  14588.  
  14589. VW_INLINE CVisioEvent FAR CVisioEventList::Add(short EventCode, short Action, BSTR_HELPER_CLASS FAR &Target, BSTR_HELPER_CLASS FAR &TargetArgs)
  14590. {
  14591.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14592.     IVEvent FAR *lpRet= NULL;
  14593.     CHECK_IP(GetIP(), CVisioEventList, Add);
  14594.     if (NULL!=GetIP())
  14595.         hr= GetIP()->Add(EventCode, Action, Target, TargetArgs, &lpRet);
  14596.     CHECK_HRESULT(hr, CVisioEventList, Add);
  14597.     return CVisioEvent(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14598. }
  14599.  
  14600.  
  14601. VW_INLINE CVisioEvent FAR CVisioEventList::AddAdvise(short EventCode, VARIANT_HELPER_CLASS FAR &SinkIUnkOrIDisp, BSTR_HELPER_CLASS FAR &IIDSink, BSTR_HELPER_CLASS FAR &TargetArgs)
  14602. {
  14603.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14604.     IVEvent FAR *lpRet= NULL;
  14605.     CHECK_IP(GetIP(), CVisioEventList, AddAdvise);
  14606.     if (NULL!=GetIP())
  14607.         hr= GetIP()->AddAdvise(EventCode, SinkIUnkOrIDisp, IIDSink, TargetArgs, &lpRet);
  14608.     CHECK_HRESULT(hr, CVisioEventList, AddAdvise);
  14609.     return CVisioEvent(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14610. }
  14611.  
  14612.  
  14613. VW_INLINE CVisioEvent FAR CVisioEventList::ItemFromID(long ObjectID)
  14614. {
  14615.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14616.     IVEvent FAR *lpRet= NULL;
  14617.     CHECK_IP(GetIP(), CVisioEventList, ItemFromID);
  14618.     if (NULL!=GetIP())
  14619.         hr= GetIP()->get_ItemFromID(ObjectID, &lpRet);
  14620.     CHECK_HRESULT(hr, CVisioEventList, ItemFromID);
  14621.     return CVisioEvent(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14622. }
  14623.  
  14624.  
  14625.  
  14626. //  ***************************************************************************
  14627. //  Implementation of class CVisioGlobal
  14628.  
  14629. VW_INLINE CVisioApplication FAR CVisioGlobal::Application()
  14630. {
  14631.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14632.     IVApplication FAR *lpRet= NULL;
  14633.     CHECK_IP(GetIP(), CVisioGlobal, Application);
  14634.     if (NULL!=GetIP())
  14635.         hr= GetIP()->get_Application(&lpRet);
  14636.     CHECK_HRESULT(hr, CVisioGlobal, Application);
  14637.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14638. }
  14639.  
  14640.  
  14641. VW_INLINE CVisioDocument FAR CVisioGlobal::ActiveDocument()
  14642. {
  14643.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14644.     IVDocument FAR *lpRet= NULL;
  14645.     CHECK_IP(GetIP(), CVisioGlobal, ActiveDocument);
  14646.     if (NULL!=GetIP())
  14647.         hr= GetIP()->get_ActiveDocument(&lpRet);
  14648.     CHECK_HRESULT(hr, CVisioGlobal, ActiveDocument);
  14649.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14650. }
  14651.  
  14652.  
  14653. VW_INLINE CVisioPage FAR CVisioGlobal::ActivePage()
  14654. {
  14655.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14656.     IVPage FAR *lpRet= NULL;
  14657.     CHECK_IP(GetIP(), CVisioGlobal, ActivePage);
  14658.     if (NULL!=GetIP())
  14659.         hr= GetIP()->get_ActivePage(&lpRet);
  14660.     CHECK_HRESULT(hr, CVisioGlobal, ActivePage);
  14661.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14662. }
  14663.  
  14664.  
  14665. VW_INLINE CVisioWindow FAR CVisioGlobal::ActiveWindow()
  14666. {
  14667.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14668.     IVWindow FAR *lpRet= NULL;
  14669.     CHECK_IP(GetIP(), CVisioGlobal, ActiveWindow);
  14670.     if (NULL!=GetIP())
  14671.         hr= GetIP()->get_ActiveWindow(&lpRet);
  14672.     CHECK_HRESULT(hr, CVisioGlobal, ActiveWindow);
  14673.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14674. }
  14675.  
  14676.  
  14677. VW_INLINE CVisioDocuments FAR CVisioGlobal::Documents()
  14678. {
  14679.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14680.     IVDocuments FAR *lpRet= NULL;
  14681.     CHECK_IP(GetIP(), CVisioGlobal, Documents);
  14682.     if (NULL!=GetIP())
  14683.         hr= GetIP()->get_Documents(&lpRet);
  14684.     CHECK_HRESULT(hr, CVisioGlobal, Documents);
  14685.     return CVisioDocuments(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14686. }
  14687.  
  14688.  
  14689. VW_INLINE CVisioWindows FAR CVisioGlobal::Windows()
  14690. {
  14691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14692.     IVWindows FAR *lpRet= NULL;
  14693.     CHECK_IP(GetIP(), CVisioGlobal, Windows);
  14694.     if (NULL!=GetIP())
  14695.         hr= GetIP()->get_Windows(&lpRet);
  14696.     CHECK_HRESULT(hr, CVisioGlobal, Windows);
  14697.     return CVisioWindows(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14698. }
  14699.  
  14700.  
  14701. VW_INLINE CVisioAddons FAR CVisioGlobal::Addons()
  14702. {
  14703.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14704.     IVAddons FAR *lpRet= NULL;
  14705.     CHECK_IP(GetIP(), CVisioGlobal, Addons);
  14706.     if (NULL!=GetIP())
  14707.         hr= GetIP()->get_Addons(&lpRet);
  14708.     CHECK_HRESULT(hr, CVisioGlobal, Addons);
  14709.     return CVisioAddons(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14710. }
  14711.  
  14712.  
  14713. VW_INLINE IDispatch FAR *CVisioGlobal::Vbe()
  14714. {
  14715.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14716.     IDispatch FAR *lpRet= NULL;
  14717.     CHECK_IP(GetIP(), CVisioGlobal, Vbe);
  14718.     if (NULL!=GetIP())
  14719.         hr= GetIP()->get_Vbe(&lpRet);
  14720.     CHECK_HRESULT(hr, CVisioGlobal, Vbe);
  14721.     return lpRet;
  14722. }
  14723.  
  14724.  
  14725.  
  14726. //  ***************************************************************************
  14727. //  Implementation of class CVisioEDocument
  14728.  
  14729.  
  14730. //  ***************************************************************************
  14731. //  Implementation of class CVisioEApplication
  14732.  
  14733.  
  14734. //  ***************************************************************************
  14735. //  Implementation of class CVisioEWindows
  14736.  
  14737.  
  14738. //  ***************************************************************************
  14739. //  Implementation of class CVisioEWindow
  14740.  
  14741.  
  14742. //  ***************************************************************************
  14743. //  Implementation of class CVisioEDocuments
  14744.  
  14745.  
  14746. //  ***************************************************************************
  14747. //  Implementation of class CVisioEStyles
  14748.  
  14749.  
  14750. //  ***************************************************************************
  14751. //  Implementation of class CVisioEStyle
  14752.  
  14753.  
  14754. //  ***************************************************************************
  14755. //  Implementation of class CVisioEMasters
  14756.  
  14757.  
  14758. //  ***************************************************************************
  14759. //  Implementation of class CVisioEMaster
  14760.  
  14761.  
  14762. //  ***************************************************************************
  14763. //  Implementation of class CVisioEPages
  14764.  
  14765.  
  14766. //  ***************************************************************************
  14767. //  Implementation of class CVisioEPage
  14768.  
  14769.  
  14770. //  ***************************************************************************
  14771. //  Implementation of class CVisioEShape
  14772.  
  14773.  
  14774. //  ***************************************************************************
  14775. //  Implementation of class CVisioECharacters
  14776.  
  14777.  
  14778. //  ***************************************************************************
  14779. //  Implementation of class CVisioECell
  14780.  
  14781.  
  14782. //  ***************************************************************************
  14783. //  Implementation of class CVisioMenuItem
  14784.  
  14785. VW_INLINE void CVisioMenuItem::Delete()
  14786. {
  14787.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14788.     CHECK_IP(GetIP(), CVisioMenuItem, Delete);
  14789.     if (NULL!=GetIP())
  14790.         hr= GetIP()->Delete();
  14791.     CHECK_HRESULT(hr, CVisioMenuItem, Delete);
  14792. }
  14793.  
  14794.  
  14795. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::Default()
  14796. {
  14797.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14798.     BSTR ret= 0;
  14799.     CHECK_IP(GetIP(), CVisioMenuItem, Default);
  14800.     if (NULL!=GetIP())
  14801.         hr= GetIP()->get_Default(&ret);
  14802.     CHECK_HRESULT(hr, CVisioMenuItem, Default);
  14803.     return BSTR_HELPER_CLASS(ret, TRUE);
  14804. }
  14805.  
  14806.  
  14807. VW_INLINE long CVisioMenuItem::Index()
  14808. {
  14809.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14810.     long ret= 0;
  14811.     CHECK_IP(GetIP(), CVisioMenuItem, Index);
  14812.     if (NULL!=GetIP())
  14813.         hr= GetIP()->get_Index(&ret);
  14814.     CHECK_HRESULT(hr, CVisioMenuItem, Index);
  14815.     return ret;
  14816. }
  14817.  
  14818.  
  14819. VW_INLINE CVisioMenuItems FAR CVisioMenuItem::MenuItems()
  14820. {
  14821.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14822.     IVMenuItems FAR *lpRet= NULL;
  14823.     CHECK_IP(GetIP(), CVisioMenuItem, MenuItems);
  14824.     if (NULL!=GetIP())
  14825.         hr= GetIP()->get_MenuItems(&lpRet);
  14826.     CHECK_HRESULT(hr, CVisioMenuItem, MenuItems);
  14827.     return CVisioMenuItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14828. }
  14829.  
  14830.  
  14831. VW_INLINE CVisioMenuItems FAR CVisioMenuItem::Parent()
  14832. {
  14833.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14834.     IVMenuItems FAR *lpRet= NULL;
  14835.     CHECK_IP(GetIP(), CVisioMenuItem, Parent);
  14836.     if (NULL!=GetIP())
  14837.         hr= GetIP()->get_Parent(&lpRet);
  14838.     CHECK_HRESULT(hr, CVisioMenuItem, Parent);
  14839.     return CVisioMenuItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  14840. }
  14841.  
  14842.  
  14843. VW_INLINE void CVisioMenuItem::putCmdNum(VW_CONST short param01)
  14844. {
  14845.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14846.     CHECK_IP(GetIP(), CVisioMenuItem, putCmdNum);
  14847.     if (NULL!=GetIP())
  14848.         hr= GetIP()->put_CmdNum(param01);
  14849.     CHECK_HRESULT(hr, CVisioMenuItem, putCmdNum);
  14850. }
  14851.  
  14852.  
  14853. VW_INLINE short CVisioMenuItem::getCmdNum()
  14854. {
  14855.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14856.     short ret= 0;
  14857.     CHECK_IP(GetIP(), CVisioMenuItem, getCmdNum);
  14858.     if (NULL!=GetIP())
  14859.         hr= GetIP()->get_CmdNum(&ret);
  14860.     CHECK_HRESULT(hr, CVisioMenuItem, getCmdNum);
  14861.     return ret;
  14862. }
  14863.  
  14864.  
  14865. VW_INLINE void CVisioMenuItem::putHelpContextID(VW_CONST short param01)
  14866. {
  14867.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14868.     CHECK_IP(GetIP(), CVisioMenuItem, putHelpContextID);
  14869.     if (NULL!=GetIP())
  14870.         hr= GetIP()->put_HelpContextID(param01);
  14871.     CHECK_HRESULT(hr, CVisioMenuItem, putHelpContextID);
  14872. }
  14873.  
  14874.  
  14875. VW_INLINE short CVisioMenuItem::getHelpContextID()
  14876. {
  14877.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14878.     short ret= 0;
  14879.     CHECK_IP(GetIP(), CVisioMenuItem, getHelpContextID);
  14880.     if (NULL!=GetIP())
  14881.         hr= GetIP()->get_HelpContextID(&ret);
  14882.     CHECK_HRESULT(hr, CVisioMenuItem, getHelpContextID);
  14883.     return ret;
  14884. }
  14885.  
  14886.  
  14887. VW_INLINE short CVisioMenuItem::IsSeparator()
  14888. {
  14889.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14890.     short ret= 0;
  14891.     CHECK_IP(GetIP(), CVisioMenuItem, IsSeparator);
  14892.     if (NULL!=GetIP())
  14893.         hr= GetIP()->get_IsSeparator(&ret);
  14894.     CHECK_HRESULT(hr, CVisioMenuItem, IsSeparator);
  14895.     return ret;
  14896. }
  14897.  
  14898.  
  14899. VW_INLINE short CVisioMenuItem::IsHierarchical()
  14900. {
  14901.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14902.     short ret= 0;
  14903.     CHECK_IP(GetIP(), CVisioMenuItem, IsHierarchical);
  14904.     if (NULL!=GetIP())
  14905.         hr= GetIP()->get_IsHierarchical(&ret);
  14906.     CHECK_HRESULT(hr, CVisioMenuItem, IsHierarchical);
  14907.     return ret;
  14908. }
  14909.  
  14910.  
  14911. VW_INLINE void CVisioMenuItem::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14912. {
  14913.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14914.     CHECK_IP(GetIP(), CVisioMenuItem, putCaption);
  14915.     if (NULL!=GetIP())
  14916.         hr= GetIP()->put_Caption(param01);
  14917.     CHECK_HRESULT(hr, CVisioMenuItem, putCaption);
  14918. }
  14919.  
  14920.  
  14921. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::getCaption()
  14922. {
  14923.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14924.     BSTR ret= 0;
  14925.     CHECK_IP(GetIP(), CVisioMenuItem, getCaption);
  14926.     if (NULL!=GetIP())
  14927.         hr= GetIP()->get_Caption(&ret);
  14928.     CHECK_HRESULT(hr, CVisioMenuItem, getCaption);
  14929.     return BSTR_HELPER_CLASS(ret, TRUE);
  14930. }
  14931.  
  14932.  
  14933. VW_INLINE void CVisioMenuItem::putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14934. {
  14935.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14936.     CHECK_IP(GetIP(), CVisioMenuItem, putActionText);
  14937.     if (NULL!=GetIP())
  14938.         hr= GetIP()->put_ActionText(param01);
  14939.     CHECK_HRESULT(hr, CVisioMenuItem, putActionText);
  14940. }
  14941.  
  14942.  
  14943. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::getActionText()
  14944. {
  14945.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14946.     BSTR ret= 0;
  14947.     CHECK_IP(GetIP(), CVisioMenuItem, getActionText);
  14948.     if (NULL!=GetIP())
  14949.         hr= GetIP()->get_ActionText(&ret);
  14950.     CHECK_HRESULT(hr, CVisioMenuItem, getActionText);
  14951.     return BSTR_HELPER_CLASS(ret, TRUE);
  14952. }
  14953.  
  14954.  
  14955. VW_INLINE void CVisioMenuItem::putMiniHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14956. {
  14957.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14958.     CHECK_IP(GetIP(), CVisioMenuItem, putMiniHelp);
  14959.     if (NULL!=GetIP())
  14960.         hr= GetIP()->put_MiniHelp(param01);
  14961.     CHECK_HRESULT(hr, CVisioMenuItem, putMiniHelp);
  14962. }
  14963.  
  14964.  
  14965. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::getMiniHelp()
  14966. {
  14967.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14968.     BSTR ret= 0;
  14969.     CHECK_IP(GetIP(), CVisioMenuItem, getMiniHelp);
  14970.     if (NULL!=GetIP())
  14971.         hr= GetIP()->get_MiniHelp(&ret);
  14972.     CHECK_HRESULT(hr, CVisioMenuItem, getMiniHelp);
  14973.     return BSTR_HELPER_CLASS(ret, TRUE);
  14974. }
  14975.  
  14976.  
  14977. VW_INLINE void CVisioMenuItem::putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  14978. {
  14979.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14980.     CHECK_IP(GetIP(), CVisioMenuItem, putAddOnName);
  14981.     if (NULL!=GetIP())
  14982.         hr= GetIP()->put_AddOnName(param01);
  14983.     CHECK_HRESULT(hr, CVisioMenuItem, putAddOnName);
  14984. }
  14985.  
  14986.  
  14987. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::getAddOnName()
  14988. {
  14989.     HRESULT hr= VW_INTERFACE_NOT_SET;
  14990.     BSTR ret= 0;
  14991.     CHECK_IP(GetIP(), CVisioMenuItem, getAddOnName);
  14992.     if (NULL!=GetIP())
  14993.         hr= GetIP()->get_AddOnName(&ret);
  14994.     CHECK_HRESULT(hr, CVisioMenuItem, getAddOnName);
  14995.     return BSTR_HELPER_CLASS(ret, TRUE);
  14996. }
  14997.  
  14998.  
  14999. VW_INLINE void CVisioMenuItem::putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15000. {
  15001.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15002.     CHECK_IP(GetIP(), CVisioMenuItem, putAddOnArgs);
  15003.     if (NULL!=GetIP())
  15004.         hr= GetIP()->put_AddOnArgs(param01);
  15005.     CHECK_HRESULT(hr, CVisioMenuItem, putAddOnArgs);
  15006. }
  15007.  
  15008.  
  15009. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::getAddOnArgs()
  15010. {
  15011.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15012.     BSTR ret= 0;
  15013.     CHECK_IP(GetIP(), CVisioMenuItem, getAddOnArgs);
  15014.     if (NULL!=GetIP())
  15015.         hr= GetIP()->get_AddOnArgs(&ret);
  15016.     CHECK_HRESULT(hr, CVisioMenuItem, getAddOnArgs);
  15017.     return BSTR_HELPER_CLASS(ret, TRUE);
  15018. }
  15019.  
  15020.  
  15021. VW_INLINE void CVisioMenuItem::putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15022. {
  15023.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15024.     CHECK_IP(GetIP(), CVisioMenuItem, putHelpFile);
  15025.     if (NULL!=GetIP())
  15026.         hr= GetIP()->put_HelpFile(param01);
  15027.     CHECK_HRESULT(hr, CVisioMenuItem, putHelpFile);
  15028. }
  15029.  
  15030.  
  15031. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuItem::getHelpFile()
  15032. {
  15033.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15034.     BSTR ret= 0;
  15035.     CHECK_IP(GetIP(), CVisioMenuItem, getHelpFile);
  15036.     if (NULL!=GetIP())
  15037.         hr= GetIP()->get_HelpFile(&ret);
  15038.     CHECK_HRESULT(hr, CVisioMenuItem, getHelpFile);
  15039.     return BSTR_HELPER_CLASS(ret, TRUE);
  15040. }
  15041.  
  15042.  
  15043.  
  15044. //  ***************************************************************************
  15045. //  Implementation of class CVisioIEnumVMenuItem
  15046.  
  15047.  
  15048. //  ***************************************************************************
  15049. //  Implementation of class CVisioMenuItems
  15050.  
  15051. VW_INLINE IUnknown FAR *CVisioMenuItems::_NewEnum()
  15052. {
  15053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15054.     IUnknown FAR *lpRet= NULL;
  15055.     CHECK_IP(GetIP(), CVisioMenuItems, _NewEnum);
  15056.     if (NULL!=GetIP())
  15057.         hr= GetIP()->get__NewEnum(&lpRet);
  15058.     CHECK_HRESULT(hr, CVisioMenuItems, _NewEnum);
  15059.     return lpRet;
  15060. }
  15061.  
  15062.  
  15063. VW_INLINE CVisioMenuItem FAR CVisioMenuItems::Item(long lIndex)
  15064. {
  15065.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15066.     IVMenuItem FAR *lpRet= NULL;
  15067.     CHECK_IP(GetIP(), CVisioMenuItems, Item);
  15068.     if (NULL!=GetIP())
  15069.         hr= GetIP()->get_Item(lIndex, &lpRet);
  15070.     CHECK_HRESULT(hr, CVisioMenuItems, Item);
  15071.     return CVisioMenuItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15072. }
  15073.  
  15074.  
  15075. VW_INLINE CVisioMenuItem FAR CVisioMenuItems::Add()
  15076. {
  15077.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15078.     IVMenuItem FAR *lpRet= NULL;
  15079.     CHECK_IP(GetIP(), CVisioMenuItems, Add);
  15080.     if (NULL!=GetIP())
  15081.         hr= GetIP()->Add(&lpRet);
  15082.     CHECK_HRESULT(hr, CVisioMenuItems, Add);
  15083.     return CVisioMenuItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15084. }
  15085.  
  15086.  
  15087. VW_INLINE CVisioMenuItem FAR CVisioMenuItems::AddAt(long lIndex)
  15088. {
  15089.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15090.     IVMenuItem FAR *lpRet= NULL;
  15091.     CHECK_IP(GetIP(), CVisioMenuItems, AddAt);
  15092.     if (NULL!=GetIP())
  15093.         hr= GetIP()->AddAt(lIndex, &lpRet);
  15094.     CHECK_HRESULT(hr, CVisioMenuItems, AddAt);
  15095.     return CVisioMenuItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15096. }
  15097.  
  15098.  
  15099. VW_INLINE long CVisioMenuItems::Count()
  15100. {
  15101.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15102.     long ret= 0;
  15103.     CHECK_IP(GetIP(), CVisioMenuItems, Count);
  15104.     if (NULL!=GetIP())
  15105.         hr= GetIP()->get_Count(&ret);
  15106.     CHECK_HRESULT(hr, CVisioMenuItems, Count);
  15107.     return ret;
  15108. }
  15109.  
  15110.  
  15111. VW_INLINE CVisioMenu FAR CVisioMenuItems::Parent()
  15112. {
  15113.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15114.     IVMenu FAR *lpRet= NULL;
  15115.     CHECK_IP(GetIP(), CVisioMenuItems, Parent);
  15116.     if (NULL!=GetIP())
  15117.         hr= GetIP()->get_Parent(&lpRet);
  15118.     CHECK_HRESULT(hr, CVisioMenuItems, Parent);
  15119.     return CVisioMenu(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15120. }
  15121.  
  15122.  
  15123.  
  15124. //  ***************************************************************************
  15125. //  Implementation of class CVisioMenu
  15126.  
  15127. VW_INLINE void CVisioMenu::Delete()
  15128. {
  15129.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15130.     CHECK_IP(GetIP(), CVisioMenu, Delete);
  15131.     if (NULL!=GetIP())
  15132.         hr= GetIP()->Delete();
  15133.     CHECK_HRESULT(hr, CVisioMenu, Delete);
  15134. }
  15135.  
  15136.  
  15137. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenu::Default()
  15138. {
  15139.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15140.     BSTR ret= 0;
  15141.     CHECK_IP(GetIP(), CVisioMenu, Default);
  15142.     if (NULL!=GetIP())
  15143.         hr= GetIP()->get_Default(&ret);
  15144.     CHECK_HRESULT(hr, CVisioMenu, Default);
  15145.     return BSTR_HELPER_CLASS(ret, TRUE);
  15146. }
  15147.  
  15148.  
  15149. VW_INLINE void CVisioMenu::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15150. {
  15151.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15152.     CHECK_IP(GetIP(), CVisioMenu, putCaption);
  15153.     if (NULL!=GetIP())
  15154.         hr= GetIP()->put_Caption(param01);
  15155.     CHECK_HRESULT(hr, CVisioMenu, putCaption);
  15156. }
  15157.  
  15158.  
  15159. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenu::getCaption()
  15160. {
  15161.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15162.     BSTR ret= 0;
  15163.     CHECK_IP(GetIP(), CVisioMenu, getCaption);
  15164.     if (NULL!=GetIP())
  15165.         hr= GetIP()->get_Caption(&ret);
  15166.     CHECK_HRESULT(hr, CVisioMenu, getCaption);
  15167.     return BSTR_HELPER_CLASS(ret, TRUE);
  15168. }
  15169.  
  15170.  
  15171. VW_INLINE long CVisioMenu::Index()
  15172. {
  15173.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15174.     long ret= 0;
  15175.     CHECK_IP(GetIP(), CVisioMenu, Index);
  15176.     if (NULL!=GetIP())
  15177.         hr= GetIP()->get_Index(&ret);
  15178.     CHECK_HRESULT(hr, CVisioMenu, Index);
  15179.     return ret;
  15180. }
  15181.  
  15182.  
  15183. VW_INLINE void CVisioMenu::putMDIWindowMenu(VW_CONST short param01)
  15184. {
  15185.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15186.     CHECK_IP(GetIP(), CVisioMenu, putMDIWindowMenu);
  15187.     if (NULL!=GetIP())
  15188.         hr= GetIP()->put_MDIWindowMenu(param01);
  15189.     CHECK_HRESULT(hr, CVisioMenu, putMDIWindowMenu);
  15190. }
  15191.  
  15192.  
  15193. VW_INLINE short CVisioMenu::getMDIWindowMenu()
  15194. {
  15195.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15196.     short ret= 0;
  15197.     CHECK_IP(GetIP(), CVisioMenu, getMDIWindowMenu);
  15198.     if (NULL!=GetIP())
  15199.         hr= GetIP()->get_MDIWindowMenu(&ret);
  15200.     CHECK_HRESULT(hr, CVisioMenu, getMDIWindowMenu);
  15201.     return ret;
  15202. }
  15203.  
  15204.  
  15205. VW_INLINE CVisioMenuItems FAR CVisioMenu::MenuItems()
  15206. {
  15207.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15208.     IVMenuItems FAR *lpRet= NULL;
  15209.     CHECK_IP(GetIP(), CVisioMenu, MenuItems);
  15210.     if (NULL!=GetIP())
  15211.         hr= GetIP()->get_MenuItems(&lpRet);
  15212.     CHECK_HRESULT(hr, CVisioMenu, MenuItems);
  15213.     return CVisioMenuItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15214. }
  15215.  
  15216.  
  15217. VW_INLINE CVisioMenus FAR CVisioMenu::Parent()
  15218. {
  15219.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15220.     IVMenus FAR *lpRet= NULL;
  15221.     CHECK_IP(GetIP(), CVisioMenu, Parent);
  15222.     if (NULL!=GetIP())
  15223.         hr= GetIP()->get_Parent(&lpRet);
  15224.     CHECK_HRESULT(hr, CVisioMenu, Parent);
  15225.     return CVisioMenus(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15226. }
  15227.  
  15228.  
  15229.  
  15230. //  ***************************************************************************
  15231. //  Implementation of class CVisioIEnumVMenu
  15232.  
  15233.  
  15234. //  ***************************************************************************
  15235. //  Implementation of class CVisioMenus
  15236.  
  15237. VW_INLINE IUnknown FAR *CVisioMenus::_NewEnum()
  15238. {
  15239.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15240.     IUnknown FAR *lpRet= NULL;
  15241.     CHECK_IP(GetIP(), CVisioMenus, _NewEnum);
  15242.     if (NULL!=GetIP())
  15243.         hr= GetIP()->get__NewEnum(&lpRet);
  15244.     CHECK_HRESULT(hr, CVisioMenus, _NewEnum);
  15245.     return lpRet;
  15246. }
  15247.  
  15248.  
  15249. VW_INLINE CVisioMenu FAR CVisioMenus::Item(long lIndex)
  15250. {
  15251.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15252.     IVMenu FAR *lpRet= NULL;
  15253.     CHECK_IP(GetIP(), CVisioMenus, Item);
  15254.     if (NULL!=GetIP())
  15255.         hr= GetIP()->get_Item(lIndex, &lpRet);
  15256.     CHECK_HRESULT(hr, CVisioMenus, Item);
  15257.     return CVisioMenu(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15258. }
  15259.  
  15260.  
  15261. VW_INLINE CVisioMenu FAR CVisioMenus::Add()
  15262. {
  15263.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15264.     IVMenu FAR *lpRet= NULL;
  15265.     CHECK_IP(GetIP(), CVisioMenus, Add);
  15266.     if (NULL!=GetIP())
  15267.         hr= GetIP()->Add(&lpRet);
  15268.     CHECK_HRESULT(hr, CVisioMenus, Add);
  15269.     return CVisioMenu(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15270. }
  15271.  
  15272.  
  15273. VW_INLINE CVisioMenu FAR CVisioMenus::AddAt(long lIndex)
  15274. {
  15275.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15276.     IVMenu FAR *lpRet= NULL;
  15277.     CHECK_IP(GetIP(), CVisioMenus, AddAt);
  15278.     if (NULL!=GetIP())
  15279.         hr= GetIP()->AddAt(lIndex, &lpRet);
  15280.     CHECK_HRESULT(hr, CVisioMenus, AddAt);
  15281.     return CVisioMenu(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15282. }
  15283.  
  15284.  
  15285. VW_INLINE long CVisioMenus::Count()
  15286. {
  15287.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15288.     long ret= 0;
  15289.     CHECK_IP(GetIP(), CVisioMenus, Count);
  15290.     if (NULL!=GetIP())
  15291.         hr= GetIP()->get_Count(&ret);
  15292.     CHECK_HRESULT(hr, CVisioMenus, Count);
  15293.     return ret;
  15294. }
  15295.  
  15296.  
  15297. VW_INLINE CVisioMenuSet FAR CVisioMenus::Parent()
  15298. {
  15299.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15300.     IVMenuSet FAR *lpRet= NULL;
  15301.     CHECK_IP(GetIP(), CVisioMenus, Parent);
  15302.     if (NULL!=GetIP())
  15303.         hr= GetIP()->get_Parent(&lpRet);
  15304.     CHECK_HRESULT(hr, CVisioMenus, Parent);
  15305.     return CVisioMenuSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15306. }
  15307.  
  15308.  
  15309.  
  15310. //  ***************************************************************************
  15311. //  Implementation of class CVisioMenuSet
  15312.  
  15313. VW_INLINE void CVisioMenuSet::Delete()
  15314. {
  15315.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15316.     CHECK_IP(GetIP(), CVisioMenuSet, Delete);
  15317.     if (NULL!=GetIP())
  15318.         hr= GetIP()->Delete();
  15319.     CHECK_HRESULT(hr, CVisioMenuSet, Delete);
  15320. }
  15321.  
  15322.  
  15323. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuSet::Default()
  15324. {
  15325.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15326.     BSTR ret= 0;
  15327.     CHECK_IP(GetIP(), CVisioMenuSet, Default);
  15328.     if (NULL!=GetIP())
  15329.         hr= GetIP()->get_Default(&ret);
  15330.     CHECK_HRESULT(hr, CVisioMenuSet, Default);
  15331.     return BSTR_HELPER_CLASS(ret, TRUE);
  15332. }
  15333.  
  15334.  
  15335. VW_INLINE void CVisioMenuSet::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15336. {
  15337.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15338.     CHECK_IP(GetIP(), CVisioMenuSet, putCaption);
  15339.     if (NULL!=GetIP())
  15340.         hr= GetIP()->put_Caption(param01);
  15341.     CHECK_HRESULT(hr, CVisioMenuSet, putCaption);
  15342. }
  15343.  
  15344.  
  15345. VW_INLINE BSTR_HELPER_CLASS FAR CVisioMenuSet::getCaption()
  15346. {
  15347.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15348.     BSTR ret= 0;
  15349.     CHECK_IP(GetIP(), CVisioMenuSet, getCaption);
  15350.     if (NULL!=GetIP())
  15351.         hr= GetIP()->get_Caption(&ret);
  15352.     CHECK_HRESULT(hr, CVisioMenuSet, getCaption);
  15353.     return BSTR_HELPER_CLASS(ret, TRUE);
  15354. }
  15355.  
  15356.  
  15357. VW_INLINE long CVisioMenuSet::SetID()
  15358. {
  15359.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15360.     long ret= 0;
  15361.     CHECK_IP(GetIP(), CVisioMenuSet, SetID);
  15362.     if (NULL!=GetIP())
  15363.         hr= GetIP()->get_SetID(&ret);
  15364.     CHECK_HRESULT(hr, CVisioMenuSet, SetID);
  15365.     return ret;
  15366. }
  15367.  
  15368.  
  15369. VW_INLINE CVisioMenus FAR CVisioMenuSet::Menus()
  15370. {
  15371.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15372.     IVMenus FAR *lpRet= NULL;
  15373.     CHECK_IP(GetIP(), CVisioMenuSet, Menus);
  15374.     if (NULL!=GetIP())
  15375.         hr= GetIP()->get_Menus(&lpRet);
  15376.     CHECK_HRESULT(hr, CVisioMenuSet, Menus);
  15377.     return CVisioMenus(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15378. }
  15379.  
  15380.  
  15381. VW_INLINE CVisioMenuSets FAR CVisioMenuSet::Parent()
  15382. {
  15383.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15384.     IVMenuSets FAR *lpRet= NULL;
  15385.     CHECK_IP(GetIP(), CVisioMenuSet, Parent);
  15386.     if (NULL!=GetIP())
  15387.         hr= GetIP()->get_Parent(&lpRet);
  15388.     CHECK_HRESULT(hr, CVisioMenuSet, Parent);
  15389.     return CVisioMenuSets(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15390. }
  15391.  
  15392.  
  15393.  
  15394. //  ***************************************************************************
  15395. //  Implementation of class CVisioIEnumVMenuSet
  15396.  
  15397.  
  15398. //  ***************************************************************************
  15399. //  Implementation of class CVisioMenuSets
  15400.  
  15401. VW_INLINE IUnknown FAR *CVisioMenuSets::_NewEnum()
  15402. {
  15403.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15404.     IUnknown FAR *lpRet= NULL;
  15405.     CHECK_IP(GetIP(), CVisioMenuSets, _NewEnum);
  15406.     if (NULL!=GetIP())
  15407.         hr= GetIP()->get__NewEnum(&lpRet);
  15408.     CHECK_HRESULT(hr, CVisioMenuSets, _NewEnum);
  15409.     return lpRet;
  15410. }
  15411.  
  15412.  
  15413. VW_INLINE CVisioMenuSet FAR CVisioMenuSets::Item(long lIndex)
  15414. {
  15415.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15416.     IVMenuSet FAR *lpRet= NULL;
  15417.     CHECK_IP(GetIP(), CVisioMenuSets, Item);
  15418.     if (NULL!=GetIP())
  15419.         hr= GetIP()->get_Item(lIndex, &lpRet);
  15420.     CHECK_HRESULT(hr, CVisioMenuSets, Item);
  15421.     return CVisioMenuSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15422. }
  15423.  
  15424.  
  15425. VW_INLINE CVisioMenuSet FAR CVisioMenuSets::ItemAtID(long lID)
  15426. {
  15427.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15428.     IVMenuSet FAR *lpRet= NULL;
  15429.     CHECK_IP(GetIP(), CVisioMenuSets, ItemAtID);
  15430.     if (NULL!=GetIP())
  15431.         hr= GetIP()->get_ItemAtID(lID, &lpRet);
  15432.     CHECK_HRESULT(hr, CVisioMenuSets, ItemAtID);
  15433.     return CVisioMenuSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15434. }
  15435.  
  15436.  
  15437. VW_INLINE CVisioMenuSet FAR CVisioMenuSets::Add()
  15438. {
  15439.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15440.     IVMenuSet FAR *lpRet= NULL;
  15441.     CHECK_IP(GetIP(), CVisioMenuSets, Add);
  15442.     if (NULL!=GetIP())
  15443.         hr= GetIP()->Add(&lpRet);
  15444.     CHECK_HRESULT(hr, CVisioMenuSets, Add);
  15445.     return CVisioMenuSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15446. }
  15447.  
  15448.  
  15449. VW_INLINE CVisioMenuSet FAR CVisioMenuSets::AddAtID(long lID)
  15450. {
  15451.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15452.     IVMenuSet FAR *lpRet= NULL;
  15453.     CHECK_IP(GetIP(), CVisioMenuSets, AddAtID);
  15454.     if (NULL!=GetIP())
  15455.         hr= GetIP()->AddAtID(lID, &lpRet);
  15456.     CHECK_HRESULT(hr, CVisioMenuSets, AddAtID);
  15457.     return CVisioMenuSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15458. }
  15459.  
  15460.  
  15461. VW_INLINE long CVisioMenuSets::Count()
  15462. {
  15463.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15464.     long ret= 0;
  15465.     CHECK_IP(GetIP(), CVisioMenuSets, Count);
  15466.     if (NULL!=GetIP())
  15467.         hr= GetIP()->get_Count(&ret);
  15468.     CHECK_HRESULT(hr, CVisioMenuSets, Count);
  15469.     return ret;
  15470. }
  15471.  
  15472.  
  15473. VW_INLINE CVisioUIObject FAR CVisioMenuSets::Parent()
  15474. {
  15475.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15476.     IVUIObject FAR *lpRet= NULL;
  15477.     CHECK_IP(GetIP(), CVisioMenuSets, Parent);
  15478.     if (NULL!=GetIP())
  15479.         hr= GetIP()->get_Parent(&lpRet);
  15480.     CHECK_HRESULT(hr, CVisioMenuSets, Parent);
  15481.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15482. }
  15483.  
  15484.  
  15485.  
  15486. //  ***************************************************************************
  15487. //  Implementation of class CVisioToolbarItem
  15488.  
  15489. VW_INLINE void CVisioToolbarItem::Delete()
  15490. {
  15491.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15492.     CHECK_IP(GetIP(), CVisioToolbarItem, Delete);
  15493.     if (NULL!=GetIP())
  15494.         hr= GetIP()->Delete();
  15495.     CHECK_HRESULT(hr, CVisioToolbarItem, Delete);
  15496. }
  15497.  
  15498.  
  15499. VW_INLINE void CVisioToolbarItem::IconFileName(BSTR_HELPER_CLASS FAR &IconFileName)
  15500. {
  15501.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15502.     CHECK_IP(GetIP(), CVisioToolbarItem, IconFileName);
  15503.     if (NULL!=GetIP())
  15504.         hr= GetIP()->IconFileName(IconFileName);
  15505.     CHECK_HRESULT(hr, CVisioToolbarItem, IconFileName);
  15506. }
  15507.  
  15508.  
  15509. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarItem::Default()
  15510. {
  15511.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15512.     BSTR ret= 0;
  15513.     CHECK_IP(GetIP(), CVisioToolbarItem, Default);
  15514.     if (NULL!=GetIP())
  15515.         hr= GetIP()->get_Default(&ret);
  15516.     CHECK_HRESULT(hr, CVisioToolbarItem, Default);
  15517.     return BSTR_HELPER_CLASS(ret, TRUE);
  15518. }
  15519.  
  15520.  
  15521. VW_INLINE long CVisioToolbarItem::Index()
  15522. {
  15523.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15524.     long ret= 0;
  15525.     CHECK_IP(GetIP(), CVisioToolbarItem, Index);
  15526.     if (NULL!=GetIP())
  15527.         hr= GetIP()->get_Index(&ret);
  15528.     CHECK_HRESULT(hr, CVisioToolbarItem, Index);
  15529.     return ret;
  15530. }
  15531.  
  15532.  
  15533. VW_INLINE CVisioToolbarItems FAR CVisioToolbarItem::Parent()
  15534. {
  15535.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15536.     IVToolbarItems FAR *lpRet= NULL;
  15537.     CHECK_IP(GetIP(), CVisioToolbarItem, Parent);
  15538.     if (NULL!=GetIP())
  15539.         hr= GetIP()->get_Parent(&lpRet);
  15540.     CHECK_HRESULT(hr, CVisioToolbarItem, Parent);
  15541.     return CVisioToolbarItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15542. }
  15543.  
  15544.  
  15545. VW_INLINE void CVisioToolbarItem::putCmdNum(VW_CONST short param01)
  15546. {
  15547.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15548.     CHECK_IP(GetIP(), CVisioToolbarItem, putCmdNum);
  15549.     if (NULL!=GetIP())
  15550.         hr= GetIP()->put_CmdNum(param01);
  15551.     CHECK_HRESULT(hr, CVisioToolbarItem, putCmdNum);
  15552. }
  15553.  
  15554.  
  15555. VW_INLINE short CVisioToolbarItem::getCmdNum()
  15556. {
  15557.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15558.     short ret= 0;
  15559.     CHECK_IP(GetIP(), CVisioToolbarItem, getCmdNum);
  15560.     if (NULL!=GetIP())
  15561.         hr= GetIP()->get_CmdNum(&ret);
  15562.     CHECK_HRESULT(hr, CVisioToolbarItem, getCmdNum);
  15563.     return ret;
  15564. }
  15565.  
  15566.  
  15567. VW_INLINE void CVisioToolbarItem::putHelpContextID(VW_CONST short param01)
  15568. {
  15569.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15570.     CHECK_IP(GetIP(), CVisioToolbarItem, putHelpContextID);
  15571.     if (NULL!=GetIP())
  15572.         hr= GetIP()->put_HelpContextID(param01);
  15573.     CHECK_HRESULT(hr, CVisioToolbarItem, putHelpContextID);
  15574. }
  15575.  
  15576.  
  15577. VW_INLINE short CVisioToolbarItem::getHelpContextID()
  15578. {
  15579.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15580.     short ret= 0;
  15581.     CHECK_IP(GetIP(), CVisioToolbarItem, getHelpContextID);
  15582.     if (NULL!=GetIP())
  15583.         hr= GetIP()->get_HelpContextID(&ret);
  15584.     CHECK_HRESULT(hr, CVisioToolbarItem, getHelpContextID);
  15585.     return ret;
  15586. }
  15587.  
  15588.  
  15589. VW_INLINE void CVisioToolbarItem::putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15590. {
  15591.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15592.     CHECK_IP(GetIP(), CVisioToolbarItem, putActionText);
  15593.     if (NULL!=GetIP())
  15594.         hr= GetIP()->put_ActionText(param01);
  15595.     CHECK_HRESULT(hr, CVisioToolbarItem, putActionText);
  15596. }
  15597.  
  15598.  
  15599. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarItem::getActionText()
  15600. {
  15601.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15602.     BSTR ret= 0;
  15603.     CHECK_IP(GetIP(), CVisioToolbarItem, getActionText);
  15604.     if (NULL!=GetIP())
  15605.         hr= GetIP()->get_ActionText(&ret);
  15606.     CHECK_HRESULT(hr, CVisioToolbarItem, getActionText);
  15607.     return BSTR_HELPER_CLASS(ret, TRUE);
  15608. }
  15609.  
  15610.  
  15611. VW_INLINE void CVisioToolbarItem::putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15612. {
  15613.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15614.     CHECK_IP(GetIP(), CVisioToolbarItem, putAddOnName);
  15615.     if (NULL!=GetIP())
  15616.         hr= GetIP()->put_AddOnName(param01);
  15617.     CHECK_HRESULT(hr, CVisioToolbarItem, putAddOnName);
  15618. }
  15619.  
  15620.  
  15621. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarItem::getAddOnName()
  15622. {
  15623.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15624.     BSTR ret= 0;
  15625.     CHECK_IP(GetIP(), CVisioToolbarItem, getAddOnName);
  15626.     if (NULL!=GetIP())
  15627.         hr= GetIP()->get_AddOnName(&ret);
  15628.     CHECK_HRESULT(hr, CVisioToolbarItem, getAddOnName);
  15629.     return BSTR_HELPER_CLASS(ret, TRUE);
  15630. }
  15631.  
  15632.  
  15633. VW_INLINE void CVisioToolbarItem::putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15634. {
  15635.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15636.     CHECK_IP(GetIP(), CVisioToolbarItem, putAddOnArgs);
  15637.     if (NULL!=GetIP())
  15638.         hr= GetIP()->put_AddOnArgs(param01);
  15639.     CHECK_HRESULT(hr, CVisioToolbarItem, putAddOnArgs);
  15640. }
  15641.  
  15642.  
  15643. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarItem::getAddOnArgs()
  15644. {
  15645.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15646.     BSTR ret= 0;
  15647.     CHECK_IP(GetIP(), CVisioToolbarItem, getAddOnArgs);
  15648.     if (NULL!=GetIP())
  15649.         hr= GetIP()->get_AddOnArgs(&ret);
  15650.     CHECK_HRESULT(hr, CVisioToolbarItem, getAddOnArgs);
  15651.     return BSTR_HELPER_CLASS(ret, TRUE);
  15652. }
  15653.  
  15654.  
  15655. VW_INLINE void CVisioToolbarItem::putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15656. {
  15657.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15658.     CHECK_IP(GetIP(), CVisioToolbarItem, putHelpFile);
  15659.     if (NULL!=GetIP())
  15660.         hr= GetIP()->put_HelpFile(param01);
  15661.     CHECK_HRESULT(hr, CVisioToolbarItem, putHelpFile);
  15662. }
  15663.  
  15664.  
  15665. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarItem::getHelpFile()
  15666. {
  15667.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15668.     BSTR ret= 0;
  15669.     CHECK_IP(GetIP(), CVisioToolbarItem, getHelpFile);
  15670.     if (NULL!=GetIP())
  15671.         hr= GetIP()->get_HelpFile(&ret);
  15672.     CHECK_HRESULT(hr, CVisioToolbarItem, getHelpFile);
  15673.     return BSTR_HELPER_CLASS(ret, TRUE);
  15674. }
  15675.  
  15676.  
  15677. VW_INLINE void CVisioToolbarItem::putCntrlType(VW_CONST short param01)
  15678. {
  15679.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15680.     CHECK_IP(GetIP(), CVisioToolbarItem, putCntrlType);
  15681.     if (NULL!=GetIP())
  15682.         hr= GetIP()->put_CntrlType(param01);
  15683.     CHECK_HRESULT(hr, CVisioToolbarItem, putCntrlType);
  15684. }
  15685.  
  15686.  
  15687. VW_INLINE short CVisioToolbarItem::getCntrlType()
  15688. {
  15689.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15690.     short ret= 0;
  15691.     CHECK_IP(GetIP(), CVisioToolbarItem, getCntrlType);
  15692.     if (NULL!=GetIP())
  15693.         hr= GetIP()->get_CntrlType(&ret);
  15694.     CHECK_HRESULT(hr, CVisioToolbarItem, getCntrlType);
  15695.     return ret;
  15696. }
  15697.  
  15698.  
  15699. VW_INLINE void CVisioToolbarItem::putCntrlID(VW_CONST short param01)
  15700. {
  15701.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15702.     CHECK_IP(GetIP(), CVisioToolbarItem, putCntrlID);
  15703.     if (NULL!=GetIP())
  15704.         hr= GetIP()->put_CntrlID(param01);
  15705.     CHECK_HRESULT(hr, CVisioToolbarItem, putCntrlID);
  15706. }
  15707.  
  15708.  
  15709. VW_INLINE short CVisioToolbarItem::getCntrlID()
  15710. {
  15711.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15712.     short ret= 0;
  15713.     CHECK_IP(GetIP(), CVisioToolbarItem, getCntrlID);
  15714.     if (NULL!=GetIP())
  15715.         hr= GetIP()->get_CntrlID(&ret);
  15716.     CHECK_HRESULT(hr, CVisioToolbarItem, getCntrlID);
  15717.     return ret;
  15718. }
  15719.  
  15720.  
  15721. VW_INLINE void CVisioToolbarItem::putTypeSpecific1(VW_CONST short param01)
  15722. {
  15723.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15724.     CHECK_IP(GetIP(), CVisioToolbarItem, putTypeSpecific1);
  15725.     if (NULL!=GetIP())
  15726.         hr= GetIP()->put_TypeSpecific1(param01);
  15727.     CHECK_HRESULT(hr, CVisioToolbarItem, putTypeSpecific1);
  15728. }
  15729.  
  15730.  
  15731. VW_INLINE short CVisioToolbarItem::getTypeSpecific1()
  15732. {
  15733.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15734.     short ret= 0;
  15735.     CHECK_IP(GetIP(), CVisioToolbarItem, getTypeSpecific1);
  15736.     if (NULL!=GetIP())
  15737.         hr= GetIP()->get_TypeSpecific1(&ret);
  15738.     CHECK_HRESULT(hr, CVisioToolbarItem, getTypeSpecific1);
  15739.     return ret;
  15740. }
  15741.  
  15742.  
  15743. VW_INLINE void CVisioToolbarItem::putPriority(VW_CONST short param01)
  15744. {
  15745.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15746.     CHECK_IP(GetIP(), CVisioToolbarItem, putPriority);
  15747.     if (NULL!=GetIP())
  15748.         hr= GetIP()->put_Priority(param01);
  15749.     CHECK_HRESULT(hr, CVisioToolbarItem, putPriority);
  15750. }
  15751.  
  15752.  
  15753. VW_INLINE short CVisioToolbarItem::getPriority()
  15754. {
  15755.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15756.     short ret= 0;
  15757.     CHECK_IP(GetIP(), CVisioToolbarItem, getPriority);
  15758.     if (NULL!=GetIP())
  15759.         hr= GetIP()->get_Priority(&ret);
  15760.     CHECK_HRESULT(hr, CVisioToolbarItem, getPriority);
  15761.     return ret;
  15762. }
  15763.  
  15764.  
  15765. VW_INLINE void CVisioToolbarItem::putSpacing(VW_CONST short param01)
  15766. {
  15767.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15768.     CHECK_IP(GetIP(), CVisioToolbarItem, putSpacing);
  15769.     if (NULL!=GetIP())
  15770.         hr= GetIP()->put_Spacing(param01);
  15771.     CHECK_HRESULT(hr, CVisioToolbarItem, putSpacing);
  15772. }
  15773.  
  15774.  
  15775. VW_INLINE short CVisioToolbarItem::getSpacing()
  15776. {
  15777.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15778.     short ret= 0;
  15779.     CHECK_IP(GetIP(), CVisioToolbarItem, getSpacing);
  15780.     if (NULL!=GetIP())
  15781.         hr= GetIP()->get_Spacing(&ret);
  15782.     CHECK_HRESULT(hr, CVisioToolbarItem, getSpacing);
  15783.     return ret;
  15784. }
  15785.  
  15786.  
  15787. VW_INLINE void CVisioToolbarItem::putTypeSpecific2(VW_CONST short param01)
  15788. {
  15789.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15790.     CHECK_IP(GetIP(), CVisioToolbarItem, putTypeSpecific2);
  15791.     if (NULL!=GetIP())
  15792.         hr= GetIP()->put_TypeSpecific2(param01);
  15793.     CHECK_HRESULT(hr, CVisioToolbarItem, putTypeSpecific2);
  15794. }
  15795.  
  15796.  
  15797. VW_INLINE short CVisioToolbarItem::getTypeSpecific2()
  15798. {
  15799.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15800.     short ret= 0;
  15801.     CHECK_IP(GetIP(), CVisioToolbarItem, getTypeSpecific2);
  15802.     if (NULL!=GetIP())
  15803.         hr= GetIP()->get_TypeSpecific2(&ret);
  15804.     CHECK_HRESULT(hr, CVisioToolbarItem, getTypeSpecific2);
  15805.     return ret;
  15806. }
  15807.  
  15808.  
  15809.  
  15810. //  ***************************************************************************
  15811. //  Implementation of class CVisioIEnumVToolbarItem
  15812.  
  15813.  
  15814. //  ***************************************************************************
  15815. //  Implementation of class CVisioToolbarItems
  15816.  
  15817. VW_INLINE IUnknown FAR *CVisioToolbarItems::_NewEnum()
  15818. {
  15819.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15820.     IUnknown FAR *lpRet= NULL;
  15821.     CHECK_IP(GetIP(), CVisioToolbarItems, _NewEnum);
  15822.     if (NULL!=GetIP())
  15823.         hr= GetIP()->get__NewEnum(&lpRet);
  15824.     CHECK_HRESULT(hr, CVisioToolbarItems, _NewEnum);
  15825.     return lpRet;
  15826. }
  15827.  
  15828.  
  15829. VW_INLINE CVisioToolbarItem FAR CVisioToolbarItems::Item(long lIndex)
  15830. {
  15831.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15832.     IVToolbarItem FAR *lpRet= NULL;
  15833.     CHECK_IP(GetIP(), CVisioToolbarItems, Item);
  15834.     if (NULL!=GetIP())
  15835.         hr= GetIP()->get_Item(lIndex, &lpRet);
  15836.     CHECK_HRESULT(hr, CVisioToolbarItems, Item);
  15837.     return CVisioToolbarItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15838. }
  15839.  
  15840.  
  15841. VW_INLINE CVisioToolbarItem FAR CVisioToolbarItems::Add()
  15842. {
  15843.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15844.     IVToolbarItem FAR *lpRet= NULL;
  15845.     CHECK_IP(GetIP(), CVisioToolbarItems, Add);
  15846.     if (NULL!=GetIP())
  15847.         hr= GetIP()->Add(&lpRet);
  15848.     CHECK_HRESULT(hr, CVisioToolbarItems, Add);
  15849.     return CVisioToolbarItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15850. }
  15851.  
  15852.  
  15853. VW_INLINE CVisioToolbarItem FAR CVisioToolbarItems::AddAt(long lIndex)
  15854. {
  15855.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15856.     IVToolbarItem FAR *lpRet= NULL;
  15857.     CHECK_IP(GetIP(), CVisioToolbarItems, AddAt);
  15858.     if (NULL!=GetIP())
  15859.         hr= GetIP()->AddAt(lIndex, &lpRet);
  15860.     CHECK_HRESULT(hr, CVisioToolbarItems, AddAt);
  15861.     return CVisioToolbarItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15862. }
  15863.  
  15864.  
  15865. VW_INLINE long CVisioToolbarItems::Count()
  15866. {
  15867.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15868.     long ret= 0;
  15869.     CHECK_IP(GetIP(), CVisioToolbarItems, Count);
  15870.     if (NULL!=GetIP())
  15871.         hr= GetIP()->get_Count(&ret);
  15872.     CHECK_HRESULT(hr, CVisioToolbarItems, Count);
  15873.     return ret;
  15874. }
  15875.  
  15876.  
  15877. VW_INLINE CVisioToolbar FAR CVisioToolbarItems::Parent()
  15878. {
  15879.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15880.     IVToolbar FAR *lpRet= NULL;
  15881.     CHECK_IP(GetIP(), CVisioToolbarItems, Parent);
  15882.     if (NULL!=GetIP())
  15883.         hr= GetIP()->get_Parent(&lpRet);
  15884.     CHECK_HRESULT(hr, CVisioToolbarItems, Parent);
  15885.     return CVisioToolbar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15886. }
  15887.  
  15888.  
  15889.  
  15890. //  ***************************************************************************
  15891. //  Implementation of class CVisioToolbar
  15892.  
  15893. VW_INLINE void CVisioToolbar::Delete()
  15894. {
  15895.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15896.     CHECK_IP(GetIP(), CVisioToolbar, Delete);
  15897.     if (NULL!=GetIP())
  15898.         hr= GetIP()->Delete();
  15899.     CHECK_HRESULT(hr, CVisioToolbar, Delete);
  15900. }
  15901.  
  15902.  
  15903. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbar::Default()
  15904. {
  15905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15906.     BSTR ret= 0;
  15907.     CHECK_IP(GetIP(), CVisioToolbar, Default);
  15908.     if (NULL!=GetIP())
  15909.         hr= GetIP()->get_Default(&ret);
  15910.     CHECK_HRESULT(hr, CVisioToolbar, Default);
  15911.     return BSTR_HELPER_CLASS(ret, TRUE);
  15912. }
  15913.  
  15914.  
  15915. VW_INLINE void CVisioToolbar::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  15916. {
  15917.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15918.     CHECK_IP(GetIP(), CVisioToolbar, putCaption);
  15919.     if (NULL!=GetIP())
  15920.         hr= GetIP()->put_Caption(param01);
  15921.     CHECK_HRESULT(hr, CVisioToolbar, putCaption);
  15922. }
  15923.  
  15924.  
  15925. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbar::getCaption()
  15926. {
  15927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15928.     BSTR ret= 0;
  15929.     CHECK_IP(GetIP(), CVisioToolbar, getCaption);
  15930.     if (NULL!=GetIP())
  15931.         hr= GetIP()->get_Caption(&ret);
  15932.     CHECK_HRESULT(hr, CVisioToolbar, getCaption);
  15933.     return BSTR_HELPER_CLASS(ret, TRUE);
  15934. }
  15935.  
  15936.  
  15937. VW_INLINE long CVisioToolbar::Index()
  15938. {
  15939.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15940.     long ret= 0;
  15941.     CHECK_IP(GetIP(), CVisioToolbar, Index);
  15942.     if (NULL!=GetIP())
  15943.         hr= GetIP()->get_Index(&ret);
  15944.     CHECK_HRESULT(hr, CVisioToolbar, Index);
  15945.     return ret;
  15946. }
  15947.  
  15948.  
  15949. VW_INLINE CVisioToolbarItems FAR CVisioToolbar::ToolbarItems()
  15950. {
  15951.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15952.     IVToolbarItems FAR *lpRet= NULL;
  15953.     CHECK_IP(GetIP(), CVisioToolbar, ToolbarItems);
  15954.     if (NULL!=GetIP())
  15955.         hr= GetIP()->get_ToolbarItems(&lpRet);
  15956.     CHECK_HRESULT(hr, CVisioToolbar, ToolbarItems);
  15957.     return CVisioToolbarItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15958. }
  15959.  
  15960.  
  15961. VW_INLINE CVisioToolbars FAR CVisioToolbar::Parent()
  15962. {
  15963.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15964.     IVToolbars FAR *lpRet= NULL;
  15965.     CHECK_IP(GetIP(), CVisioToolbar, Parent);
  15966.     if (NULL!=GetIP())
  15967.         hr= GetIP()->get_Parent(&lpRet);
  15968.     CHECK_HRESULT(hr, CVisioToolbar, Parent);
  15969.     return CVisioToolbars(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  15970. }
  15971.  
  15972.  
  15973.  
  15974. //  ***************************************************************************
  15975. //  Implementation of class CVisioIEnumVToolbar
  15976.  
  15977.  
  15978. //  ***************************************************************************
  15979. //  Implementation of class CVisioToolbars
  15980.  
  15981. VW_INLINE IUnknown FAR *CVisioToolbars::_NewEnum()
  15982. {
  15983.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15984.     IUnknown FAR *lpRet= NULL;
  15985.     CHECK_IP(GetIP(), CVisioToolbars, _NewEnum);
  15986.     if (NULL!=GetIP())
  15987.         hr= GetIP()->get__NewEnum(&lpRet);
  15988.     CHECK_HRESULT(hr, CVisioToolbars, _NewEnum);
  15989.     return lpRet;
  15990. }
  15991.  
  15992.  
  15993. VW_INLINE CVisioToolbar FAR CVisioToolbars::Item(long lIndex)
  15994. {
  15995.     HRESULT hr= VW_INTERFACE_NOT_SET;
  15996.     IVToolbar FAR *lpRet= NULL;
  15997.     CHECK_IP(GetIP(), CVisioToolbars, Item);
  15998.     if (NULL!=GetIP())
  15999.         hr= GetIP()->get_Item(lIndex, &lpRet);
  16000.     CHECK_HRESULT(hr, CVisioToolbars, Item);
  16001.     return CVisioToolbar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16002. }
  16003.  
  16004.  
  16005. VW_INLINE CVisioToolbar FAR CVisioToolbars::Add()
  16006. {
  16007.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16008.     IVToolbar FAR *lpRet= NULL;
  16009.     CHECK_IP(GetIP(), CVisioToolbars, Add);
  16010.     if (NULL!=GetIP())
  16011.         hr= GetIP()->Add(&lpRet);
  16012.     CHECK_HRESULT(hr, CVisioToolbars, Add);
  16013.     return CVisioToolbar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16014. }
  16015.  
  16016.  
  16017. VW_INLINE CVisioToolbar FAR CVisioToolbars::AddAt(long lIndex)
  16018. {
  16019.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16020.     IVToolbar FAR *lpRet= NULL;
  16021.     CHECK_IP(GetIP(), CVisioToolbars, AddAt);
  16022.     if (NULL!=GetIP())
  16023.         hr= GetIP()->AddAt(lIndex, &lpRet);
  16024.     CHECK_HRESULT(hr, CVisioToolbars, AddAt);
  16025.     return CVisioToolbar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16026. }
  16027.  
  16028.  
  16029. VW_INLINE long CVisioToolbars::Count()
  16030. {
  16031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16032.     long ret= 0;
  16033.     CHECK_IP(GetIP(), CVisioToolbars, Count);
  16034.     if (NULL!=GetIP())
  16035.         hr= GetIP()->get_Count(&ret);
  16036.     CHECK_HRESULT(hr, CVisioToolbars, Count);
  16037.     return ret;
  16038. }
  16039.  
  16040.  
  16041. VW_INLINE CVisioToolbarSet FAR CVisioToolbars::Parent()
  16042. {
  16043.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16044.     IVToolbarSet FAR *lpRet= NULL;
  16045.     CHECK_IP(GetIP(), CVisioToolbars, Parent);
  16046.     if (NULL!=GetIP())
  16047.         hr= GetIP()->get_Parent(&lpRet);
  16048.     CHECK_HRESULT(hr, CVisioToolbars, Parent);
  16049.     return CVisioToolbarSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16050. }
  16051.  
  16052.  
  16053.  
  16054. //  ***************************************************************************
  16055. //  Implementation of class CVisioToolbarSet
  16056.  
  16057. VW_INLINE void CVisioToolbarSet::Delete()
  16058. {
  16059.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16060.     CHECK_IP(GetIP(), CVisioToolbarSet, Delete);
  16061.     if (NULL!=GetIP())
  16062.         hr= GetIP()->Delete();
  16063.     CHECK_HRESULT(hr, CVisioToolbarSet, Delete);
  16064. }
  16065.  
  16066.  
  16067. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarSet::Default()
  16068. {
  16069.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16070.     BSTR ret= 0;
  16071.     CHECK_IP(GetIP(), CVisioToolbarSet, Default);
  16072.     if (NULL!=GetIP())
  16073.         hr= GetIP()->get_Default(&ret);
  16074.     CHECK_HRESULT(hr, CVisioToolbarSet, Default);
  16075.     return BSTR_HELPER_CLASS(ret, TRUE);
  16076. }
  16077.  
  16078.  
  16079. VW_INLINE void CVisioToolbarSet::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16080. {
  16081.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16082.     CHECK_IP(GetIP(), CVisioToolbarSet, putCaption);
  16083.     if (NULL!=GetIP())
  16084.         hr= GetIP()->put_Caption(param01);
  16085.     CHECK_HRESULT(hr, CVisioToolbarSet, putCaption);
  16086. }
  16087.  
  16088.  
  16089. VW_INLINE BSTR_HELPER_CLASS FAR CVisioToolbarSet::getCaption()
  16090. {
  16091.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16092.     BSTR ret= 0;
  16093.     CHECK_IP(GetIP(), CVisioToolbarSet, getCaption);
  16094.     if (NULL!=GetIP())
  16095.         hr= GetIP()->get_Caption(&ret);
  16096.     CHECK_HRESULT(hr, CVisioToolbarSet, getCaption);
  16097.     return BSTR_HELPER_CLASS(ret, TRUE);
  16098. }
  16099.  
  16100.  
  16101. VW_INLINE long CVisioToolbarSet::SetID()
  16102. {
  16103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16104.     long ret= 0;
  16105.     CHECK_IP(GetIP(), CVisioToolbarSet, SetID);
  16106.     if (NULL!=GetIP())
  16107.         hr= GetIP()->get_SetID(&ret);
  16108.     CHECK_HRESULT(hr, CVisioToolbarSet, SetID);
  16109.     return ret;
  16110. }
  16111.  
  16112.  
  16113. VW_INLINE CVisioToolbars FAR CVisioToolbarSet::Toolbars()
  16114. {
  16115.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16116.     IVToolbars FAR *lpRet= NULL;
  16117.     CHECK_IP(GetIP(), CVisioToolbarSet, Toolbars);
  16118.     if (NULL!=GetIP())
  16119.         hr= GetIP()->get_Toolbars(&lpRet);
  16120.     CHECK_HRESULT(hr, CVisioToolbarSet, Toolbars);
  16121.     return CVisioToolbars(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16122. }
  16123.  
  16124.  
  16125. VW_INLINE CVisioToolbarSets FAR CVisioToolbarSet::Parent()
  16126. {
  16127.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16128.     IVToolbarSets FAR *lpRet= NULL;
  16129.     CHECK_IP(GetIP(), CVisioToolbarSet, Parent);
  16130.     if (NULL!=GetIP())
  16131.         hr= GetIP()->get_Parent(&lpRet);
  16132.     CHECK_HRESULT(hr, CVisioToolbarSet, Parent);
  16133.     return CVisioToolbarSets(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16134. }
  16135.  
  16136.  
  16137.  
  16138. //  ***************************************************************************
  16139. //  Implementation of class CVisioIEnumVToolbarSet
  16140.  
  16141.  
  16142. //  ***************************************************************************
  16143. //  Implementation of class CVisioToolbarSets
  16144.  
  16145. VW_INLINE IUnknown FAR *CVisioToolbarSets::_NewEnum()
  16146. {
  16147.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16148.     IUnknown FAR *lpRet= NULL;
  16149.     CHECK_IP(GetIP(), CVisioToolbarSets, _NewEnum);
  16150.     if (NULL!=GetIP())
  16151.         hr= GetIP()->get__NewEnum(&lpRet);
  16152.     CHECK_HRESULT(hr, CVisioToolbarSets, _NewEnum);
  16153.     return lpRet;
  16154. }
  16155.  
  16156.  
  16157. VW_INLINE CVisioToolbarSet FAR CVisioToolbarSets::Item(long lIndex)
  16158. {
  16159.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16160.     IVToolbarSet FAR *lpRet= NULL;
  16161.     CHECK_IP(GetIP(), CVisioToolbarSets, Item);
  16162.     if (NULL!=GetIP())
  16163.         hr= GetIP()->get_Item(lIndex, &lpRet);
  16164.     CHECK_HRESULT(hr, CVisioToolbarSets, Item);
  16165.     return CVisioToolbarSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16166. }
  16167.  
  16168.  
  16169. VW_INLINE CVisioToolbarSet FAR CVisioToolbarSets::ItemAtID(long lID)
  16170. {
  16171.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16172.     IVToolbarSet FAR *lpRet= NULL;
  16173.     CHECK_IP(GetIP(), CVisioToolbarSets, ItemAtID);
  16174.     if (NULL!=GetIP())
  16175.         hr= GetIP()->get_ItemAtID(lID, &lpRet);
  16176.     CHECK_HRESULT(hr, CVisioToolbarSets, ItemAtID);
  16177.     return CVisioToolbarSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16178. }
  16179.  
  16180.  
  16181. VW_INLINE CVisioToolbarSet FAR CVisioToolbarSets::Add()
  16182. {
  16183.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16184.     IVToolbarSet FAR *lpRet= NULL;
  16185.     CHECK_IP(GetIP(), CVisioToolbarSets, Add);
  16186.     if (NULL!=GetIP())
  16187.         hr= GetIP()->Add(&lpRet);
  16188.     CHECK_HRESULT(hr, CVisioToolbarSets, Add);
  16189.     return CVisioToolbarSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16190. }
  16191.  
  16192.  
  16193. VW_INLINE CVisioToolbarSet FAR CVisioToolbarSets::AddAtID(long lID)
  16194. {
  16195.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16196.     IVToolbarSet FAR *lpRet= NULL;
  16197.     CHECK_IP(GetIP(), CVisioToolbarSets, AddAtID);
  16198.     if (NULL!=GetIP())
  16199.         hr= GetIP()->AddAtID(lID, &lpRet);
  16200.     CHECK_HRESULT(hr, CVisioToolbarSets, AddAtID);
  16201.     return CVisioToolbarSet(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16202. }
  16203.  
  16204.  
  16205. VW_INLINE long CVisioToolbarSets::Count()
  16206. {
  16207.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16208.     long ret= 0;
  16209.     CHECK_IP(GetIP(), CVisioToolbarSets, Count);
  16210.     if (NULL!=GetIP())
  16211.         hr= GetIP()->get_Count(&ret);
  16212.     CHECK_HRESULT(hr, CVisioToolbarSets, Count);
  16213.     return ret;
  16214. }
  16215.  
  16216.  
  16217. VW_INLINE CVisioUIObject FAR CVisioToolbarSets::Parent()
  16218. {
  16219.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16220.     IVUIObject FAR *lpRet= NULL;
  16221.     CHECK_IP(GetIP(), CVisioToolbarSets, Parent);
  16222.     if (NULL!=GetIP())
  16223.         hr= GetIP()->get_Parent(&lpRet);
  16224.     CHECK_HRESULT(hr, CVisioToolbarSets, Parent);
  16225.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16226. }
  16227.  
  16228.  
  16229.  
  16230. //  ***************************************************************************
  16231. //  Implementation of class CVisioStatusBarItem
  16232.  
  16233. VW_INLINE void CVisioStatusBarItem::Delete()
  16234. {
  16235.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16236.     CHECK_IP(GetIP(), CVisioStatusBarItem, Delete);
  16237.     if (NULL!=GetIP())
  16238.         hr= GetIP()->Delete();
  16239.     CHECK_HRESULT(hr, CVisioStatusBarItem, Delete);
  16240. }
  16241.  
  16242.  
  16243. VW_INLINE void CVisioStatusBarItem::IconFileName(BSTR_HELPER_CLASS FAR &IconFileName)
  16244. {
  16245.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16246.     CHECK_IP(GetIP(), CVisioStatusBarItem, IconFileName);
  16247.     if (NULL!=GetIP())
  16248.         hr= GetIP()->IconFileName(IconFileName);
  16249.     CHECK_HRESULT(hr, CVisioStatusBarItem, IconFileName);
  16250. }
  16251.  
  16252.  
  16253. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBarItem::Default()
  16254. {
  16255.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16256.     BSTR ret= 0;
  16257.     CHECK_IP(GetIP(), CVisioStatusBarItem, Default);
  16258.     if (NULL!=GetIP())
  16259.         hr= GetIP()->get_Default(&ret);
  16260.     CHECK_HRESULT(hr, CVisioStatusBarItem, Default);
  16261.     return BSTR_HELPER_CLASS(ret, TRUE);
  16262. }
  16263.  
  16264.  
  16265. VW_INLINE long CVisioStatusBarItem::Index()
  16266. {
  16267.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16268.     long ret= 0;
  16269.     CHECK_IP(GetIP(), CVisioStatusBarItem, Index);
  16270.     if (NULL!=GetIP())
  16271.         hr= GetIP()->get_Index(&ret);
  16272.     CHECK_HRESULT(hr, CVisioStatusBarItem, Index);
  16273.     return ret;
  16274. }
  16275.  
  16276.  
  16277. VW_INLINE CVisioStatusBarItems FAR CVisioStatusBarItem::Parent()
  16278. {
  16279.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16280.     IVStatusBarItems FAR *lpRet= NULL;
  16281.     CHECK_IP(GetIP(), CVisioStatusBarItem, Parent);
  16282.     if (NULL!=GetIP())
  16283.         hr= GetIP()->get_Parent(&lpRet);
  16284.     CHECK_HRESULT(hr, CVisioStatusBarItem, Parent);
  16285.     return CVisioStatusBarItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16286. }
  16287.  
  16288.  
  16289. VW_INLINE void CVisioStatusBarItem::putCmdNum(VW_CONST short param01)
  16290. {
  16291.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16292.     CHECK_IP(GetIP(), CVisioStatusBarItem, putCmdNum);
  16293.     if (NULL!=GetIP())
  16294.         hr= GetIP()->put_CmdNum(param01);
  16295.     CHECK_HRESULT(hr, CVisioStatusBarItem, putCmdNum);
  16296. }
  16297.  
  16298.  
  16299. VW_INLINE short CVisioStatusBarItem::getCmdNum()
  16300. {
  16301.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16302.     short ret= 0;
  16303.     CHECK_IP(GetIP(), CVisioStatusBarItem, getCmdNum);
  16304.     if (NULL!=GetIP())
  16305.         hr= GetIP()->get_CmdNum(&ret);
  16306.     CHECK_HRESULT(hr, CVisioStatusBarItem, getCmdNum);
  16307.     return ret;
  16308. }
  16309.  
  16310.  
  16311. VW_INLINE void CVisioStatusBarItem::putHelpContextID(VW_CONST short param01)
  16312. {
  16313.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16314.     CHECK_IP(GetIP(), CVisioStatusBarItem, putHelpContextID);
  16315.     if (NULL!=GetIP())
  16316.         hr= GetIP()->put_HelpContextID(param01);
  16317.     CHECK_HRESULT(hr, CVisioStatusBarItem, putHelpContextID);
  16318. }
  16319.  
  16320.  
  16321. VW_INLINE short CVisioStatusBarItem::getHelpContextID()
  16322. {
  16323.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16324.     short ret= 0;
  16325.     CHECK_IP(GetIP(), CVisioStatusBarItem, getHelpContextID);
  16326.     if (NULL!=GetIP())
  16327.         hr= GetIP()->get_HelpContextID(&ret);
  16328.     CHECK_HRESULT(hr, CVisioStatusBarItem, getHelpContextID);
  16329.     return ret;
  16330. }
  16331.  
  16332.  
  16333. VW_INLINE void CVisioStatusBarItem::putActionText(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16334. {
  16335.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16336.     CHECK_IP(GetIP(), CVisioStatusBarItem, putActionText);
  16337.     if (NULL!=GetIP())
  16338.         hr= GetIP()->put_ActionText(param01);
  16339.     CHECK_HRESULT(hr, CVisioStatusBarItem, putActionText);
  16340. }
  16341.  
  16342.  
  16343. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBarItem::getActionText()
  16344. {
  16345.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16346.     BSTR ret= 0;
  16347.     CHECK_IP(GetIP(), CVisioStatusBarItem, getActionText);
  16348.     if (NULL!=GetIP())
  16349.         hr= GetIP()->get_ActionText(&ret);
  16350.     CHECK_HRESULT(hr, CVisioStatusBarItem, getActionText);
  16351.     return BSTR_HELPER_CLASS(ret, TRUE);
  16352. }
  16353.  
  16354.  
  16355. VW_INLINE void CVisioStatusBarItem::putAddOnName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16356. {
  16357.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16358.     CHECK_IP(GetIP(), CVisioStatusBarItem, putAddOnName);
  16359.     if (NULL!=GetIP())
  16360.         hr= GetIP()->put_AddOnName(param01);
  16361.     CHECK_HRESULT(hr, CVisioStatusBarItem, putAddOnName);
  16362. }
  16363.  
  16364.  
  16365. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBarItem::getAddOnName()
  16366. {
  16367.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16368.     BSTR ret= 0;
  16369.     CHECK_IP(GetIP(), CVisioStatusBarItem, getAddOnName);
  16370.     if (NULL!=GetIP())
  16371.         hr= GetIP()->get_AddOnName(&ret);
  16372.     CHECK_HRESULT(hr, CVisioStatusBarItem, getAddOnName);
  16373.     return BSTR_HELPER_CLASS(ret, TRUE);
  16374. }
  16375.  
  16376.  
  16377. VW_INLINE void CVisioStatusBarItem::putAddOnArgs(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16378. {
  16379.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16380.     CHECK_IP(GetIP(), CVisioStatusBarItem, putAddOnArgs);
  16381.     if (NULL!=GetIP())
  16382.         hr= GetIP()->put_AddOnArgs(param01);
  16383.     CHECK_HRESULT(hr, CVisioStatusBarItem, putAddOnArgs);
  16384. }
  16385.  
  16386.  
  16387. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBarItem::getAddOnArgs()
  16388. {
  16389.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16390.     BSTR ret= 0;
  16391.     CHECK_IP(GetIP(), CVisioStatusBarItem, getAddOnArgs);
  16392.     if (NULL!=GetIP())
  16393.         hr= GetIP()->get_AddOnArgs(&ret);
  16394.     CHECK_HRESULT(hr, CVisioStatusBarItem, getAddOnArgs);
  16395.     return BSTR_HELPER_CLASS(ret, TRUE);
  16396. }
  16397.  
  16398.  
  16399. VW_INLINE void CVisioStatusBarItem::putHelpFile(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16400. {
  16401.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16402.     CHECK_IP(GetIP(), CVisioStatusBarItem, putHelpFile);
  16403.     if (NULL!=GetIP())
  16404.         hr= GetIP()->put_HelpFile(param01);
  16405.     CHECK_HRESULT(hr, CVisioStatusBarItem, putHelpFile);
  16406. }
  16407.  
  16408.  
  16409. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBarItem::getHelpFile()
  16410. {
  16411.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16412.     BSTR ret= 0;
  16413.     CHECK_IP(GetIP(), CVisioStatusBarItem, getHelpFile);
  16414.     if (NULL!=GetIP())
  16415.         hr= GetIP()->get_HelpFile(&ret);
  16416.     CHECK_HRESULT(hr, CVisioStatusBarItem, getHelpFile);
  16417.     return BSTR_HELPER_CLASS(ret, TRUE);
  16418. }
  16419.  
  16420.  
  16421. VW_INLINE void CVisioStatusBarItem::putCntrlType(VW_CONST short param01)
  16422. {
  16423.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16424.     CHECK_IP(GetIP(), CVisioStatusBarItem, putCntrlType);
  16425.     if (NULL!=GetIP())
  16426.         hr= GetIP()->put_CntrlType(param01);
  16427.     CHECK_HRESULT(hr, CVisioStatusBarItem, putCntrlType);
  16428. }
  16429.  
  16430.  
  16431. VW_INLINE short CVisioStatusBarItem::getCntrlType()
  16432. {
  16433.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16434.     short ret= 0;
  16435.     CHECK_IP(GetIP(), CVisioStatusBarItem, getCntrlType);
  16436.     if (NULL!=GetIP())
  16437.         hr= GetIP()->get_CntrlType(&ret);
  16438.     CHECK_HRESULT(hr, CVisioStatusBarItem, getCntrlType);
  16439.     return ret;
  16440. }
  16441.  
  16442.  
  16443. VW_INLINE void CVisioStatusBarItem::putCntrlID(VW_CONST short param01)
  16444. {
  16445.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16446.     CHECK_IP(GetIP(), CVisioStatusBarItem, putCntrlID);
  16447.     if (NULL!=GetIP())
  16448.         hr= GetIP()->put_CntrlID(param01);
  16449.     CHECK_HRESULT(hr, CVisioStatusBarItem, putCntrlID);
  16450. }
  16451.  
  16452.  
  16453. VW_INLINE short CVisioStatusBarItem::getCntrlID()
  16454. {
  16455.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16456.     short ret= 0;
  16457.     CHECK_IP(GetIP(), CVisioStatusBarItem, getCntrlID);
  16458.     if (NULL!=GetIP())
  16459.         hr= GetIP()->get_CntrlID(&ret);
  16460.     CHECK_HRESULT(hr, CVisioStatusBarItem, getCntrlID);
  16461.     return ret;
  16462. }
  16463.  
  16464.  
  16465. VW_INLINE void CVisioStatusBarItem::putTypeSpecific1(VW_CONST short param01)
  16466. {
  16467.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16468.     CHECK_IP(GetIP(), CVisioStatusBarItem, putTypeSpecific1);
  16469.     if (NULL!=GetIP())
  16470.         hr= GetIP()->put_TypeSpecific1(param01);
  16471.     CHECK_HRESULT(hr, CVisioStatusBarItem, putTypeSpecific1);
  16472. }
  16473.  
  16474.  
  16475. VW_INLINE short CVisioStatusBarItem::getTypeSpecific1()
  16476. {
  16477.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16478.     short ret= 0;
  16479.     CHECK_IP(GetIP(), CVisioStatusBarItem, getTypeSpecific1);
  16480.     if (NULL!=GetIP())
  16481.         hr= GetIP()->get_TypeSpecific1(&ret);
  16482.     CHECK_HRESULT(hr, CVisioStatusBarItem, getTypeSpecific1);
  16483.     return ret;
  16484. }
  16485.  
  16486.  
  16487. VW_INLINE void CVisioStatusBarItem::putPriority(VW_CONST short param01)
  16488. {
  16489.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16490.     CHECK_IP(GetIP(), CVisioStatusBarItem, putPriority);
  16491.     if (NULL!=GetIP())
  16492.         hr= GetIP()->put_Priority(param01);
  16493.     CHECK_HRESULT(hr, CVisioStatusBarItem, putPriority);
  16494. }
  16495.  
  16496.  
  16497. VW_INLINE short CVisioStatusBarItem::getPriority()
  16498. {
  16499.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16500.     short ret= 0;
  16501.     CHECK_IP(GetIP(), CVisioStatusBarItem, getPriority);
  16502.     if (NULL!=GetIP())
  16503.         hr= GetIP()->get_Priority(&ret);
  16504.     CHECK_HRESULT(hr, CVisioStatusBarItem, getPriority);
  16505.     return ret;
  16506. }
  16507.  
  16508.  
  16509. VW_INLINE void CVisioStatusBarItem::putSpacing(VW_CONST short param01)
  16510. {
  16511.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16512.     CHECK_IP(GetIP(), CVisioStatusBarItem, putSpacing);
  16513.     if (NULL!=GetIP())
  16514.         hr= GetIP()->put_Spacing(param01);
  16515.     CHECK_HRESULT(hr, CVisioStatusBarItem, putSpacing);
  16516. }
  16517.  
  16518.  
  16519. VW_INLINE short CVisioStatusBarItem::getSpacing()
  16520. {
  16521.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16522.     short ret= 0;
  16523.     CHECK_IP(GetIP(), CVisioStatusBarItem, getSpacing);
  16524.     if (NULL!=GetIP())
  16525.         hr= GetIP()->get_Spacing(&ret);
  16526.     CHECK_HRESULT(hr, CVisioStatusBarItem, getSpacing);
  16527.     return ret;
  16528. }
  16529.  
  16530.  
  16531. VW_INLINE void CVisioStatusBarItem::putTypeSpecific2(VW_CONST short param01)
  16532. {
  16533.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16534.     CHECK_IP(GetIP(), CVisioStatusBarItem, putTypeSpecific2);
  16535.     if (NULL!=GetIP())
  16536.         hr= GetIP()->put_TypeSpecific2(param01);
  16537.     CHECK_HRESULT(hr, CVisioStatusBarItem, putTypeSpecific2);
  16538. }
  16539.  
  16540.  
  16541. VW_INLINE short CVisioStatusBarItem::getTypeSpecific2()
  16542. {
  16543.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16544.     short ret= 0;
  16545.     CHECK_IP(GetIP(), CVisioStatusBarItem, getTypeSpecific2);
  16546.     if (NULL!=GetIP())
  16547.         hr= GetIP()->get_TypeSpecific2(&ret);
  16548.     CHECK_HRESULT(hr, CVisioStatusBarItem, getTypeSpecific2);
  16549.     return ret;
  16550. }
  16551.  
  16552.  
  16553.  
  16554. //  ***************************************************************************
  16555. //  Implementation of class CVisioIEnumVStatusBarItem
  16556.  
  16557.  
  16558. //  ***************************************************************************
  16559. //  Implementation of class CVisioStatusBarItems
  16560.  
  16561. VW_INLINE IUnknown FAR *CVisioStatusBarItems::_NewEnum()
  16562. {
  16563.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16564.     IUnknown FAR *lpRet= NULL;
  16565.     CHECK_IP(GetIP(), CVisioStatusBarItems, _NewEnum);
  16566.     if (NULL!=GetIP())
  16567.         hr= GetIP()->get__NewEnum(&lpRet);
  16568.     CHECK_HRESULT(hr, CVisioStatusBarItems, _NewEnum);
  16569.     return lpRet;
  16570. }
  16571.  
  16572.  
  16573. VW_INLINE CVisioStatusBarItem FAR CVisioStatusBarItems::Item(long lIndex)
  16574. {
  16575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16576.     IVStatusBarItem FAR *lpRet= NULL;
  16577.     CHECK_IP(GetIP(), CVisioStatusBarItems, Item);
  16578.     if (NULL!=GetIP())
  16579.         hr= GetIP()->get_Item(lIndex, &lpRet);
  16580.     CHECK_HRESULT(hr, CVisioStatusBarItems, Item);
  16581.     return CVisioStatusBarItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16582. }
  16583.  
  16584.  
  16585. VW_INLINE CVisioStatusBarItem FAR CVisioStatusBarItems::Add()
  16586. {
  16587.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16588.     IVStatusBarItem FAR *lpRet= NULL;
  16589.     CHECK_IP(GetIP(), CVisioStatusBarItems, Add);
  16590.     if (NULL!=GetIP())
  16591.         hr= GetIP()->Add(&lpRet);
  16592.     CHECK_HRESULT(hr, CVisioStatusBarItems, Add);
  16593.     return CVisioStatusBarItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16594. }
  16595.  
  16596.  
  16597. VW_INLINE CVisioStatusBarItem FAR CVisioStatusBarItems::AddAt(long lIndex)
  16598. {
  16599.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16600.     IVStatusBarItem FAR *lpRet= NULL;
  16601.     CHECK_IP(GetIP(), CVisioStatusBarItems, AddAt);
  16602.     if (NULL!=GetIP())
  16603.         hr= GetIP()->AddAt(lIndex, &lpRet);
  16604.     CHECK_HRESULT(hr, CVisioStatusBarItems, AddAt);
  16605.     return CVisioStatusBarItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16606. }
  16607.  
  16608.  
  16609. VW_INLINE long CVisioStatusBarItems::Count()
  16610. {
  16611.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16612.     long ret= 0;
  16613.     CHECK_IP(GetIP(), CVisioStatusBarItems, Count);
  16614.     if (NULL!=GetIP())
  16615.         hr= GetIP()->get_Count(&ret);
  16616.     CHECK_HRESULT(hr, CVisioStatusBarItems, Count);
  16617.     return ret;
  16618. }
  16619.  
  16620.  
  16621. VW_INLINE CVisioStatusBar FAR CVisioStatusBarItems::Parent()
  16622. {
  16623.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16624.     IVStatusBar FAR *lpRet= NULL;
  16625.     CHECK_IP(GetIP(), CVisioStatusBarItems, Parent);
  16626.     if (NULL!=GetIP())
  16627.         hr= GetIP()->get_Parent(&lpRet);
  16628.     CHECK_HRESULT(hr, CVisioStatusBarItems, Parent);
  16629.     return CVisioStatusBar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16630. }
  16631.  
  16632.  
  16633.  
  16634. //  ***************************************************************************
  16635. //  Implementation of class CVisioStatusBar
  16636.  
  16637. VW_INLINE void CVisioStatusBar::Delete()
  16638. {
  16639.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16640.     CHECK_IP(GetIP(), CVisioStatusBar, Delete);
  16641.     if (NULL!=GetIP())
  16642.         hr= GetIP()->Delete();
  16643.     CHECK_HRESULT(hr, CVisioStatusBar, Delete);
  16644. }
  16645.  
  16646.  
  16647. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBar::Default()
  16648. {
  16649.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16650.     BSTR ret= 0;
  16651.     CHECK_IP(GetIP(), CVisioStatusBar, Default);
  16652.     if (NULL!=GetIP())
  16653.         hr= GetIP()->get_Default(&ret);
  16654.     CHECK_HRESULT(hr, CVisioStatusBar, Default);
  16655.     return BSTR_HELPER_CLASS(ret, TRUE);
  16656. }
  16657.  
  16658.  
  16659. VW_INLINE void CVisioStatusBar::putCaption(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  16660. {
  16661.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16662.     CHECK_IP(GetIP(), CVisioStatusBar, putCaption);
  16663.     if (NULL!=GetIP())
  16664.         hr= GetIP()->put_Caption(param01);
  16665.     CHECK_HRESULT(hr, CVisioStatusBar, putCaption);
  16666. }
  16667.  
  16668.  
  16669. VW_INLINE BSTR_HELPER_CLASS FAR CVisioStatusBar::getCaption()
  16670. {
  16671.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16672.     BSTR ret= 0;
  16673.     CHECK_IP(GetIP(), CVisioStatusBar, getCaption);
  16674.     if (NULL!=GetIP())
  16675.         hr= GetIP()->get_Caption(&ret);
  16676.     CHECK_HRESULT(hr, CVisioStatusBar, getCaption);
  16677.     return BSTR_HELPER_CLASS(ret, TRUE);
  16678. }
  16679.  
  16680.  
  16681. VW_INLINE long CVisioStatusBar::SetID()
  16682. {
  16683.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16684.     long ret= 0;
  16685.     CHECK_IP(GetIP(), CVisioStatusBar, SetID);
  16686.     if (NULL!=GetIP())
  16687.         hr= GetIP()->get_SetID(&ret);
  16688.     CHECK_HRESULT(hr, CVisioStatusBar, SetID);
  16689.     return ret;
  16690. }
  16691.  
  16692.  
  16693. VW_INLINE CVisioStatusBarItems FAR CVisioStatusBar::StatusBarItems()
  16694. {
  16695.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16696.     IVStatusBarItems FAR *lpRet= NULL;
  16697.     CHECK_IP(GetIP(), CVisioStatusBar, StatusBarItems);
  16698.     if (NULL!=GetIP())
  16699.         hr= GetIP()->get_StatusBarItems(&lpRet);
  16700.     CHECK_HRESULT(hr, CVisioStatusBar, StatusBarItems);
  16701.     return CVisioStatusBarItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16702. }
  16703.  
  16704.  
  16705. VW_INLINE CVisioStatusBars FAR CVisioStatusBar::Parent()
  16706. {
  16707.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16708.     IVStatusBars FAR *lpRet= NULL;
  16709.     CHECK_IP(GetIP(), CVisioStatusBar, Parent);
  16710.     if (NULL!=GetIP())
  16711.         hr= GetIP()->get_Parent(&lpRet);
  16712.     CHECK_HRESULT(hr, CVisioStatusBar, Parent);
  16713.     return CVisioStatusBars(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16714. }
  16715.  
  16716.  
  16717.  
  16718. //  ***************************************************************************
  16719. //  Implementation of class CVisioIEnumVStatusBar
  16720.  
  16721.  
  16722. //  ***************************************************************************
  16723. //  Implementation of class CVisioStatusBars
  16724.  
  16725. VW_INLINE IUnknown FAR *CVisioStatusBars::_NewEnum()
  16726. {
  16727.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16728.     IUnknown FAR *lpRet= NULL;
  16729.     CHECK_IP(GetIP(), CVisioStatusBars, _NewEnum);
  16730.     if (NULL!=GetIP())
  16731.         hr= GetIP()->get__NewEnum(&lpRet);
  16732.     CHECK_HRESULT(hr, CVisioStatusBars, _NewEnum);
  16733.     return lpRet;
  16734. }
  16735.  
  16736.  
  16737. VW_INLINE CVisioStatusBar FAR CVisioStatusBars::Item(long lIndex)
  16738. {
  16739.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16740.     IVStatusBar FAR *lpRet= NULL;
  16741.     CHECK_IP(GetIP(), CVisioStatusBars, Item);
  16742.     if (NULL!=GetIP())
  16743.         hr= GetIP()->get_Item(lIndex, &lpRet);
  16744.     CHECK_HRESULT(hr, CVisioStatusBars, Item);
  16745.     return CVisioStatusBar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16746. }
  16747.  
  16748.  
  16749. VW_INLINE CVisioStatusBar FAR CVisioStatusBars::ItemAtID(long lID)
  16750. {
  16751.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16752.     IVStatusBar FAR *lpRet= NULL;
  16753.     CHECK_IP(GetIP(), CVisioStatusBars, ItemAtID);
  16754.     if (NULL!=GetIP())
  16755.         hr= GetIP()->get_ItemAtID(lID, &lpRet);
  16756.     CHECK_HRESULT(hr, CVisioStatusBars, ItemAtID);
  16757.     return CVisioStatusBar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16758. }
  16759.  
  16760.  
  16761. VW_INLINE CVisioStatusBar FAR CVisioStatusBars::Add()
  16762. {
  16763.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16764.     IVStatusBar FAR *lpRet= NULL;
  16765.     CHECK_IP(GetIP(), CVisioStatusBars, Add);
  16766.     if (NULL!=GetIP())
  16767.         hr= GetIP()->Add(&lpRet);
  16768.     CHECK_HRESULT(hr, CVisioStatusBars, Add);
  16769.     return CVisioStatusBar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16770. }
  16771.  
  16772.  
  16773. VW_INLINE CVisioStatusBar FAR CVisioStatusBars::AddAtID(long lID)
  16774. {
  16775.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16776.     IVStatusBar FAR *lpRet= NULL;
  16777.     CHECK_IP(GetIP(), CVisioStatusBars, AddAtID);
  16778.     if (NULL!=GetIP())
  16779.         hr= GetIP()->AddAtID(lID, &lpRet);
  16780.     CHECK_HRESULT(hr, CVisioStatusBars, AddAtID);
  16781.     return CVisioStatusBar(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16782. }
  16783.  
  16784.  
  16785. VW_INLINE long CVisioStatusBars::Count()
  16786. {
  16787.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16788.     long ret= 0;
  16789.     CHECK_IP(GetIP(), CVisioStatusBars, Count);
  16790.     if (NULL!=GetIP())
  16791.         hr= GetIP()->get_Count(&ret);
  16792.     CHECK_HRESULT(hr, CVisioStatusBars, Count);
  16793.     return ret;
  16794. }
  16795.  
  16796.  
  16797. VW_INLINE CVisioUIObject FAR CVisioStatusBars::Parent()
  16798. {
  16799.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16800.     IVUIObject FAR *lpRet= NULL;
  16801.     CHECK_IP(GetIP(), CVisioStatusBars, Parent);
  16802.     if (NULL!=GetIP())
  16803.         hr= GetIP()->get_Parent(&lpRet);
  16804.     CHECK_HRESULT(hr, CVisioStatusBars, Parent);
  16805.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16806. }
  16807.  
  16808.  
  16809.  
  16810. //  ***************************************************************************
  16811. //  Implementation of class CVisioAccelItem
  16812.  
  16813. VW_INLINE void CVisioAccelItem::Delete()
  16814. {
  16815.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16816.     CHECK_IP(GetIP(), CVisioAccelItem, Delete);
  16817.     if (NULL!=GetIP())
  16818.         hr= GetIP()->Delete();
  16819.     CHECK_HRESULT(hr, CVisioAccelItem, Delete);
  16820. }
  16821.  
  16822.  
  16823. VW_INLINE short CVisioAccelItem::Default()
  16824. {
  16825.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16826.     short ret= 0;
  16827.     CHECK_IP(GetIP(), CVisioAccelItem, Default);
  16828.     if (NULL!=GetIP())
  16829.         hr= GetIP()->get_Default(&ret);
  16830.     CHECK_HRESULT(hr, CVisioAccelItem, Default);
  16831.     return ret;
  16832. }
  16833.  
  16834.  
  16835. VW_INLINE void CVisioAccelItem::putCmdNum(VW_CONST short param01)
  16836. {
  16837.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16838.     CHECK_IP(GetIP(), CVisioAccelItem, putCmdNum);
  16839.     if (NULL!=GetIP())
  16840.         hr= GetIP()->put_CmdNum(param01);
  16841.     CHECK_HRESULT(hr, CVisioAccelItem, putCmdNum);
  16842. }
  16843.  
  16844.  
  16845. VW_INLINE short CVisioAccelItem::getCmdNum()
  16846. {
  16847.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16848.     short ret= 0;
  16849.     CHECK_IP(GetIP(), CVisioAccelItem, getCmdNum);
  16850.     if (NULL!=GetIP())
  16851.         hr= GetIP()->get_CmdNum(&ret);
  16852.     CHECK_HRESULT(hr, CVisioAccelItem, getCmdNum);
  16853.     return ret;
  16854. }
  16855.  
  16856.  
  16857. VW_INLINE void CVisioAccelItem::putKey(VW_CONST short param01)
  16858. {
  16859.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16860.     CHECK_IP(GetIP(), CVisioAccelItem, putKey);
  16861.     if (NULL!=GetIP())
  16862.         hr= GetIP()->put_Key(param01);
  16863.     CHECK_HRESULT(hr, CVisioAccelItem, putKey);
  16864. }
  16865.  
  16866.  
  16867. VW_INLINE short CVisioAccelItem::getKey()
  16868. {
  16869.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16870.     short ret= 0;
  16871.     CHECK_IP(GetIP(), CVisioAccelItem, getKey);
  16872.     if (NULL!=GetIP())
  16873.         hr= GetIP()->get_Key(&ret);
  16874.     CHECK_HRESULT(hr, CVisioAccelItem, getKey);
  16875.     return ret;
  16876. }
  16877.  
  16878.  
  16879. VW_INLINE void CVisioAccelItem::putAlt(VW_CONST short param01)
  16880. {
  16881.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16882.     CHECK_IP(GetIP(), CVisioAccelItem, putAlt);
  16883.     if (NULL!=GetIP())
  16884.         hr= GetIP()->put_Alt(param01);
  16885.     CHECK_HRESULT(hr, CVisioAccelItem, putAlt);
  16886. }
  16887.  
  16888.  
  16889. VW_INLINE short CVisioAccelItem::getAlt()
  16890. {
  16891.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16892.     short ret= 0;
  16893.     CHECK_IP(GetIP(), CVisioAccelItem, getAlt);
  16894.     if (NULL!=GetIP())
  16895.         hr= GetIP()->get_Alt(&ret);
  16896.     CHECK_HRESULT(hr, CVisioAccelItem, getAlt);
  16897.     return ret;
  16898. }
  16899.  
  16900.  
  16901. VW_INLINE void CVisioAccelItem::putShift(VW_CONST short param01)
  16902. {
  16903.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16904.     CHECK_IP(GetIP(), CVisioAccelItem, putShift);
  16905.     if (NULL!=GetIP())
  16906.         hr= GetIP()->put_Shift(param01);
  16907.     CHECK_HRESULT(hr, CVisioAccelItem, putShift);
  16908. }
  16909.  
  16910.  
  16911. VW_INLINE short CVisioAccelItem::getShift()
  16912. {
  16913.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16914.     short ret= 0;
  16915.     CHECK_IP(GetIP(), CVisioAccelItem, getShift);
  16916.     if (NULL!=GetIP())
  16917.         hr= GetIP()->get_Shift(&ret);
  16918.     CHECK_HRESULT(hr, CVisioAccelItem, getShift);
  16919.     return ret;
  16920. }
  16921.  
  16922.  
  16923. VW_INLINE void CVisioAccelItem::putControl(VW_CONST short param01)
  16924. {
  16925.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16926.     CHECK_IP(GetIP(), CVisioAccelItem, putControl);
  16927.     if (NULL!=GetIP())
  16928.         hr= GetIP()->put_Control(param01);
  16929.     CHECK_HRESULT(hr, CVisioAccelItem, putControl);
  16930. }
  16931.  
  16932.  
  16933. VW_INLINE short CVisioAccelItem::getControl()
  16934. {
  16935.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16936.     short ret= 0;
  16937.     CHECK_IP(GetIP(), CVisioAccelItem, getControl);
  16938.     if (NULL!=GetIP())
  16939.         hr= GetIP()->get_Control(&ret);
  16940.     CHECK_HRESULT(hr, CVisioAccelItem, getControl);
  16941.     return ret;
  16942. }
  16943.  
  16944.  
  16945. VW_INLINE CVisioAccelItems FAR CVisioAccelItem::Parent()
  16946. {
  16947.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16948.     IVAccelItems FAR *lpRet= NULL;
  16949.     CHECK_IP(GetIP(), CVisioAccelItem, Parent);
  16950.     if (NULL!=GetIP())
  16951.         hr= GetIP()->get_Parent(&lpRet);
  16952.     CHECK_HRESULT(hr, CVisioAccelItem, Parent);
  16953.     return CVisioAccelItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16954. }
  16955.  
  16956.  
  16957.  
  16958. //  ***************************************************************************
  16959. //  Implementation of class CVisioIEnumVAccelItem
  16960.  
  16961.  
  16962. //  ***************************************************************************
  16963. //  Implementation of class CVisioAccelItems
  16964.  
  16965. VW_INLINE IUnknown FAR *CVisioAccelItems::_NewEnum()
  16966. {
  16967.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16968.     IUnknown FAR *lpRet= NULL;
  16969.     CHECK_IP(GetIP(), CVisioAccelItems, _NewEnum);
  16970.     if (NULL!=GetIP())
  16971.         hr= GetIP()->get__NewEnum(&lpRet);
  16972.     CHECK_HRESULT(hr, CVisioAccelItems, _NewEnum);
  16973.     return lpRet;
  16974. }
  16975.  
  16976.  
  16977. VW_INLINE CVisioAccelItem FAR CVisioAccelItems::Item(long lIndex)
  16978. {
  16979.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16980.     IVAccelItem FAR *lpRet= NULL;
  16981.     CHECK_IP(GetIP(), CVisioAccelItems, Item);
  16982.     if (NULL!=GetIP())
  16983.         hr= GetIP()->get_Item(lIndex, &lpRet);
  16984.     CHECK_HRESULT(hr, CVisioAccelItems, Item);
  16985.     return CVisioAccelItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16986. }
  16987.  
  16988.  
  16989. VW_INLINE CVisioAccelItem FAR CVisioAccelItems::Add()
  16990. {
  16991.     HRESULT hr= VW_INTERFACE_NOT_SET;
  16992.     IVAccelItem FAR *lpRet= NULL;
  16993.     CHECK_IP(GetIP(), CVisioAccelItems, Add);
  16994.     if (NULL!=GetIP())
  16995.         hr= GetIP()->Add(&lpRet);
  16996.     CHECK_HRESULT(hr, CVisioAccelItems, Add);
  16997.     return CVisioAccelItem(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  16998. }
  16999.  
  17000.  
  17001. VW_INLINE long CVisioAccelItems::Count()
  17002. {
  17003.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17004.     long ret= 0;
  17005.     CHECK_IP(GetIP(), CVisioAccelItems, Count);
  17006.     if (NULL!=GetIP())
  17007.         hr= GetIP()->get_Count(&ret);
  17008.     CHECK_HRESULT(hr, CVisioAccelItems, Count);
  17009.     return ret;
  17010. }
  17011.  
  17012.  
  17013. VW_INLINE CVisioAccelTable FAR CVisioAccelItems::Parent()
  17014. {
  17015.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17016.     IVAccelTable FAR *lpRet= NULL;
  17017.     CHECK_IP(GetIP(), CVisioAccelItems, Parent);
  17018.     if (NULL!=GetIP())
  17019.         hr= GetIP()->get_Parent(&lpRet);
  17020.     CHECK_HRESULT(hr, CVisioAccelItems, Parent);
  17021.     return CVisioAccelTable(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17022. }
  17023.  
  17024.  
  17025.  
  17026. //  ***************************************************************************
  17027. //  Implementation of class CVisioAccelTable
  17028.  
  17029. VW_INLINE void CVisioAccelTable::Delete()
  17030. {
  17031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17032.     CHECK_IP(GetIP(), CVisioAccelTable, Delete);
  17033.     if (NULL!=GetIP())
  17034.         hr= GetIP()->Delete();
  17035.     CHECK_HRESULT(hr, CVisioAccelTable, Delete);
  17036. }
  17037.  
  17038.  
  17039. VW_INLINE BSTR_HELPER_CLASS FAR CVisioAccelTable::Default()
  17040. {
  17041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17042.     BSTR ret= 0;
  17043.     CHECK_IP(GetIP(), CVisioAccelTable, Default);
  17044.     if (NULL!=GetIP())
  17045.         hr= GetIP()->get_Default(&ret);
  17046.     CHECK_HRESULT(hr, CVisioAccelTable, Default);
  17047.     return BSTR_HELPER_CLASS(ret, TRUE);
  17048. }
  17049.  
  17050.  
  17051. VW_INLINE void CVisioAccelTable::putTableName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17052. {
  17053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17054.     CHECK_IP(GetIP(), CVisioAccelTable, putTableName);
  17055.     if (NULL!=GetIP())
  17056.         hr= GetIP()->put_TableName(param01);
  17057.     CHECK_HRESULT(hr, CVisioAccelTable, putTableName);
  17058. }
  17059.  
  17060.  
  17061. VW_INLINE BSTR_HELPER_CLASS FAR CVisioAccelTable::getTableName()
  17062. {
  17063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17064.     BSTR ret= 0;
  17065.     CHECK_IP(GetIP(), CVisioAccelTable, getTableName);
  17066.     if (NULL!=GetIP())
  17067.         hr= GetIP()->get_TableName(&ret);
  17068.     CHECK_HRESULT(hr, CVisioAccelTable, getTableName);
  17069.     return BSTR_HELPER_CLASS(ret, TRUE);
  17070. }
  17071.  
  17072.  
  17073. VW_INLINE long CVisioAccelTable::SetID()
  17074. {
  17075.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17076.     long ret= 0;
  17077.     CHECK_IP(GetIP(), CVisioAccelTable, SetID);
  17078.     if (NULL!=GetIP())
  17079.         hr= GetIP()->get_SetID(&ret);
  17080.     CHECK_HRESULT(hr, CVisioAccelTable, SetID);
  17081.     return ret;
  17082. }
  17083.  
  17084.  
  17085. VW_INLINE CVisioAccelItems FAR CVisioAccelTable::AccelItems()
  17086. {
  17087.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17088.     IVAccelItems FAR *lpRet= NULL;
  17089.     CHECK_IP(GetIP(), CVisioAccelTable, AccelItems);
  17090.     if (NULL!=GetIP())
  17091.         hr= GetIP()->get_AccelItems(&lpRet);
  17092.     CHECK_HRESULT(hr, CVisioAccelTable, AccelItems);
  17093.     return CVisioAccelItems(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17094. }
  17095.  
  17096.  
  17097. VW_INLINE CVisioAccelTables FAR CVisioAccelTable::Parent()
  17098. {
  17099.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17100.     IVAccelTables FAR *lpRet= NULL;
  17101.     CHECK_IP(GetIP(), CVisioAccelTable, Parent);
  17102.     if (NULL!=GetIP())
  17103.         hr= GetIP()->get_Parent(&lpRet);
  17104.     CHECK_HRESULT(hr, CVisioAccelTable, Parent);
  17105.     return CVisioAccelTables(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17106. }
  17107.  
  17108.  
  17109.  
  17110. //  ***************************************************************************
  17111. //  Implementation of class CVisioIEnumVAccelTable
  17112.  
  17113.  
  17114. //  ***************************************************************************
  17115. //  Implementation of class CVisioAccelTables
  17116.  
  17117. VW_INLINE IUnknown FAR *CVisioAccelTables::_NewEnum()
  17118. {
  17119.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17120.     IUnknown FAR *lpRet= NULL;
  17121.     CHECK_IP(GetIP(), CVisioAccelTables, _NewEnum);
  17122.     if (NULL!=GetIP())
  17123.         hr= GetIP()->get__NewEnum(&lpRet);
  17124.     CHECK_HRESULT(hr, CVisioAccelTables, _NewEnum);
  17125.     return lpRet;
  17126. }
  17127.  
  17128.  
  17129. VW_INLINE CVisioAccelTable FAR CVisioAccelTables::Item(long lIndex)
  17130. {
  17131.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17132.     IVAccelTable FAR *lpRet= NULL;
  17133.     CHECK_IP(GetIP(), CVisioAccelTables, Item);
  17134.     if (NULL!=GetIP())
  17135.         hr= GetIP()->get_Item(lIndex, &lpRet);
  17136.     CHECK_HRESULT(hr, CVisioAccelTables, Item);
  17137.     return CVisioAccelTable(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17138. }
  17139.  
  17140.  
  17141. VW_INLINE CVisioAccelTable FAR CVisioAccelTables::ItemAtID(long lID)
  17142. {
  17143.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17144.     IVAccelTable FAR *lpRet= NULL;
  17145.     CHECK_IP(GetIP(), CVisioAccelTables, ItemAtID);
  17146.     if (NULL!=GetIP())
  17147.         hr= GetIP()->get_ItemAtID(lID, &lpRet);
  17148.     CHECK_HRESULT(hr, CVisioAccelTables, ItemAtID);
  17149.     return CVisioAccelTable(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17150. }
  17151.  
  17152.  
  17153. VW_INLINE CVisioAccelTable FAR CVisioAccelTables::Add()
  17154. {
  17155.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17156.     IVAccelTable FAR *lpRet= NULL;
  17157.     CHECK_IP(GetIP(), CVisioAccelTables, Add);
  17158.     if (NULL!=GetIP())
  17159.         hr= GetIP()->Add(&lpRet);
  17160.     CHECK_HRESULT(hr, CVisioAccelTables, Add);
  17161.     return CVisioAccelTable(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17162. }
  17163.  
  17164.  
  17165. VW_INLINE CVisioAccelTable FAR CVisioAccelTables::AddAtID(long lID)
  17166. {
  17167.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17168.     IVAccelTable FAR *lpRet= NULL;
  17169.     CHECK_IP(GetIP(), CVisioAccelTables, AddAtID);
  17170.     if (NULL!=GetIP())
  17171.         hr= GetIP()->AddAtID(lID, &lpRet);
  17172.     CHECK_HRESULT(hr, CVisioAccelTables, AddAtID);
  17173.     return CVisioAccelTable(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17174. }
  17175.  
  17176.  
  17177. VW_INLINE long CVisioAccelTables::Count()
  17178. {
  17179.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17180.     long ret= 0;
  17181.     CHECK_IP(GetIP(), CVisioAccelTables, Count);
  17182.     if (NULL!=GetIP())
  17183.         hr= GetIP()->get_Count(&ret);
  17184.     CHECK_HRESULT(hr, CVisioAccelTables, Count);
  17185.     return ret;
  17186. }
  17187.  
  17188.  
  17189. VW_INLINE CVisioUIObject FAR CVisioAccelTables::Parent()
  17190. {
  17191.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17192.     IVUIObject FAR *lpRet= NULL;
  17193.     CHECK_IP(GetIP(), CVisioAccelTables, Parent);
  17194.     if (NULL!=GetIP())
  17195.         hr= GetIP()->get_Parent(&lpRet);
  17196.     CHECK_HRESULT(hr, CVisioAccelTables, Parent);
  17197.     return CVisioUIObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17198. }
  17199.  
  17200.  
  17201.  
  17202. //  ***************************************************************************
  17203. //  Implementation of class CVisioUIObject
  17204.  
  17205. VW_INLINE void CVisioUIObject::Delete()
  17206. {
  17207.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17208.     CHECK_IP(GetIP(), CVisioUIObject, Delete);
  17209.     if (NULL!=GetIP())
  17210.         hr= GetIP()->Delete();
  17211.     CHECK_HRESULT(hr, CVisioUIObject, Delete);
  17212. }
  17213.  
  17214.  
  17215. VW_INLINE BSTR_HELPER_CLASS FAR CVisioUIObject::Default()
  17216. {
  17217.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17218.     BSTR ret= 0;
  17219.     CHECK_IP(GetIP(), CVisioUIObject, Default);
  17220.     if (NULL!=GetIP())
  17221.         hr= GetIP()->get_Default(&ret);
  17222.     CHECK_HRESULT(hr, CVisioUIObject, Default);
  17223.     return BSTR_HELPER_CLASS(ret, TRUE);
  17224. }
  17225.  
  17226.  
  17227. VW_INLINE void CVisioUIObject::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17228. {
  17229.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17230.     CHECK_IP(GetIP(), CVisioUIObject, putName);
  17231.     if (NULL!=GetIP())
  17232.         hr= GetIP()->put_Name(param01);
  17233.     CHECK_HRESULT(hr, CVisioUIObject, putName);
  17234. }
  17235.  
  17236.  
  17237. VW_INLINE BSTR_HELPER_CLASS FAR CVisioUIObject::getName()
  17238. {
  17239.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17240.     BSTR ret= 0;
  17241.     CHECK_IP(GetIP(), CVisioUIObject, getName);
  17242.     if (NULL!=GetIP())
  17243.         hr= GetIP()->get_Name(&ret);
  17244.     CHECK_HRESULT(hr, CVisioUIObject, getName);
  17245.     return BSTR_HELPER_CLASS(ret, TRUE);
  17246. }
  17247.  
  17248.  
  17249. VW_INLINE void CVisioUIObject::putFlavor(VW_CONST short param01)
  17250. {
  17251.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17252.     CHECK_IP(GetIP(), CVisioUIObject, putFlavor);
  17253.     if (NULL!=GetIP())
  17254.         hr= GetIP()->put_Flavor(param01);
  17255.     CHECK_HRESULT(hr, CVisioUIObject, putFlavor);
  17256. }
  17257.  
  17258.  
  17259. VW_INLINE short CVisioUIObject::getFlavor()
  17260. {
  17261.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17262.     short ret= 0;
  17263.     CHECK_IP(GetIP(), CVisioUIObject, getFlavor);
  17264.     if (NULL!=GetIP())
  17265.         hr= GetIP()->get_Flavor(&ret);
  17266.     CHECK_HRESULT(hr, CVisioUIObject, getFlavor);
  17267.     return ret;
  17268. }
  17269.  
  17270.  
  17271. VW_INLINE CVisioMenuSets FAR CVisioUIObject::MenuSets()
  17272. {
  17273.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17274.     IVMenuSets FAR *lpRet= NULL;
  17275.     CHECK_IP(GetIP(), CVisioUIObject, MenuSets);
  17276.     if (NULL!=GetIP())
  17277.         hr= GetIP()->get_MenuSets(&lpRet);
  17278.     CHECK_HRESULT(hr, CVisioUIObject, MenuSets);
  17279.     return CVisioMenuSets(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17280. }
  17281.  
  17282.  
  17283. VW_INLINE CVisioToolbarSets FAR CVisioUIObject::ToolbarSets()
  17284. {
  17285.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17286.     IVToolbarSets FAR *lpRet= NULL;
  17287.     CHECK_IP(GetIP(), CVisioUIObject, ToolbarSets);
  17288.     if (NULL!=GetIP())
  17289.         hr= GetIP()->get_ToolbarSets(&lpRet);
  17290.     CHECK_HRESULT(hr, CVisioUIObject, ToolbarSets);
  17291.     return CVisioToolbarSets(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17292. }
  17293.  
  17294.  
  17295. VW_INLINE CVisioStatusBars FAR CVisioUIObject::StatusBars()
  17296. {
  17297.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17298.     IVStatusBars FAR *lpRet= NULL;
  17299.     CHECK_IP(GetIP(), CVisioUIObject, StatusBars);
  17300.     if (NULL!=GetIP())
  17301.         hr= GetIP()->get_StatusBars(&lpRet);
  17302.     CHECK_HRESULT(hr, CVisioUIObject, StatusBars);
  17303.     return CVisioStatusBars(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17304. }
  17305.  
  17306.  
  17307. VW_INLINE CVisioAccelTables FAR CVisioUIObject::AccelTables()
  17308. {
  17309.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17310.     IVAccelTables FAR *lpRet= NULL;
  17311.     CHECK_IP(GetIP(), CVisioUIObject, AccelTables);
  17312.     if (NULL!=GetIP())
  17313.         hr= GetIP()->get_AccelTables(&lpRet);
  17314.     CHECK_HRESULT(hr, CVisioUIObject, AccelTables);
  17315.     return CVisioAccelTables(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17316. }
  17317.  
  17318.  
  17319. VW_INLINE void CVisioUIObject::SaveToFile(BSTR_HELPER_CLASS FAR &FileName)
  17320. {
  17321.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17322.     CHECK_IP(GetIP(), CVisioUIObject, SaveToFile);
  17323.     if (NULL!=GetIP())
  17324.         hr= GetIP()->SaveToFile(FileName);
  17325.     CHECK_HRESULT(hr, CVisioUIObject, SaveToFile);
  17326. }
  17327.  
  17328.  
  17329. VW_INLINE void CVisioUIObject::LoadFromFile(BSTR_HELPER_CLASS FAR &FileName)
  17330. {
  17331.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17332.     CHECK_IP(GetIP(), CVisioUIObject, LoadFromFile);
  17333.     if (NULL!=GetIP())
  17334.         hr= GetIP()->LoadFromFile(FileName);
  17335.     CHECK_HRESULT(hr, CVisioUIObject, LoadFromFile);
  17336. }
  17337.  
  17338.  
  17339. VW_INLINE void CVisioUIObject::UpdateUI()
  17340. {
  17341.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17342.     CHECK_IP(GetIP(), CVisioUIObject, UpdateUI);
  17343.     if (NULL!=GetIP())
  17344.         hr= GetIP()->UpdateUI();
  17345.     CHECK_HRESULT(hr, CVisioUIObject, UpdateUI);
  17346. }
  17347.  
  17348.  
  17349.  
  17350. //  ***************************************************************************
  17351. //  Implementation of class CVisioHyperlink
  17352.  
  17353. VW_INLINE BSTR_HELPER_CLASS FAR CVisioHyperlink::getDescription()
  17354. {
  17355.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17356.     BSTR ret= 0;
  17357.     CHECK_IP(GetIP(), CVisioHyperlink, getDescription);
  17358.     if (NULL!=GetIP())
  17359.         hr= GetIP()->get_Description(&ret);
  17360.     CHECK_HRESULT(hr, CVisioHyperlink, getDescription);
  17361.     return BSTR_HELPER_CLASS(ret, TRUE);
  17362. }
  17363.  
  17364.  
  17365. VW_INLINE void CVisioHyperlink::putDescription(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17366. {
  17367.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17368.     CHECK_IP(GetIP(), CVisioHyperlink, putDescription);
  17369.     if (NULL!=GetIP())
  17370.         hr= GetIP()->put_Description(param01);
  17371.     CHECK_HRESULT(hr, CVisioHyperlink, putDescription);
  17372. }
  17373.  
  17374.  
  17375. VW_INLINE CVisioApplication FAR CVisioHyperlink::Application()
  17376. {
  17377.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17378.     IVApplication FAR *lpRet= NULL;
  17379.     CHECK_IP(GetIP(), CVisioHyperlink, Application);
  17380.     if (NULL!=GetIP())
  17381.         hr= GetIP()->get_Application(&lpRet);
  17382.     CHECK_HRESULT(hr, CVisioHyperlink, Application);
  17383.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17384. }
  17385.  
  17386.  
  17387. VW_INLINE CVisioShape FAR CVisioHyperlink::Shape()
  17388. {
  17389.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17390.     IVShape FAR *lpRet= NULL;
  17391.     CHECK_IP(GetIP(), CVisioHyperlink, Shape);
  17392.     if (NULL!=GetIP())
  17393.         hr= GetIP()->get_Shape(&lpRet);
  17394.     CHECK_HRESULT(hr, CVisioHyperlink, Shape);
  17395.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17396. }
  17397.  
  17398.  
  17399. VW_INLINE short CVisioHyperlink::ObjectType()
  17400. {
  17401.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17402.     short ret= 0;
  17403.     CHECK_IP(GetIP(), CVisioHyperlink, ObjectType);
  17404.     if (NULL!=GetIP())
  17405.         hr= GetIP()->get_ObjectType(&ret);
  17406.     CHECK_HRESULT(hr, CVisioHyperlink, ObjectType);
  17407.     return ret;
  17408. }
  17409.  
  17410.  
  17411. VW_INLINE short CVisioHyperlink::Stat()
  17412. {
  17413.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17414.     short ret= 0;
  17415.     CHECK_IP(GetIP(), CVisioHyperlink, Stat);
  17416.     if (NULL!=GetIP())
  17417.         hr= GetIP()->get_Stat(&ret);
  17418.     CHECK_HRESULT(hr, CVisioHyperlink, Stat);
  17419.     return ret;
  17420. }
  17421.  
  17422.  
  17423. VW_INLINE BSTR_HELPER_CLASS FAR CVisioHyperlink::getAddress()
  17424. {
  17425.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17426.     BSTR ret= 0;
  17427.     CHECK_IP(GetIP(), CVisioHyperlink, getAddress);
  17428.     if (NULL!=GetIP())
  17429.         hr= GetIP()->get_Address(&ret);
  17430.     CHECK_HRESULT(hr, CVisioHyperlink, getAddress);
  17431.     return BSTR_HELPER_CLASS(ret, TRUE);
  17432. }
  17433.  
  17434.  
  17435. VW_INLINE void CVisioHyperlink::putAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17436. {
  17437.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17438.     CHECK_IP(GetIP(), CVisioHyperlink, putAddress);
  17439.     if (NULL!=GetIP())
  17440.         hr= GetIP()->put_Address(param01);
  17441.     CHECK_HRESULT(hr, CVisioHyperlink, putAddress);
  17442. }
  17443.  
  17444.  
  17445. VW_INLINE BSTR_HELPER_CLASS FAR CVisioHyperlink::getSubAddress()
  17446. {
  17447.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17448.     BSTR ret= 0;
  17449.     CHECK_IP(GetIP(), CVisioHyperlink, getSubAddress);
  17450.     if (NULL!=GetIP())
  17451.         hr= GetIP()->get_SubAddress(&ret);
  17452.     CHECK_HRESULT(hr, CVisioHyperlink, getSubAddress);
  17453.     return BSTR_HELPER_CLASS(ret, TRUE);
  17454. }
  17455.  
  17456.  
  17457. VW_INLINE void CVisioHyperlink::putSubAddress(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17458. {
  17459.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17460.     CHECK_IP(GetIP(), CVisioHyperlink, putSubAddress);
  17461.     if (NULL!=GetIP())
  17462.         hr= GetIP()->put_SubAddress(param01);
  17463.     CHECK_HRESULT(hr, CVisioHyperlink, putSubAddress);
  17464. }
  17465.  
  17466.  
  17467. VW_INLINE short CVisioHyperlink::getNewWindow()
  17468. {
  17469.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17470.     short ret= 0;
  17471.     CHECK_IP(GetIP(), CVisioHyperlink, getNewWindow);
  17472.     if (NULL!=GetIP())
  17473.         hr= GetIP()->get_NewWindow(&ret);
  17474.     CHECK_HRESULT(hr, CVisioHyperlink, getNewWindow);
  17475.     return ret;
  17476. }
  17477.  
  17478.  
  17479. VW_INLINE void CVisioHyperlink::putNewWindow(VW_CONST short param01)
  17480. {
  17481.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17482.     CHECK_IP(GetIP(), CVisioHyperlink, putNewWindow);
  17483.     if (NULL!=GetIP())
  17484.         hr= GetIP()->put_NewWindow(param01);
  17485.     CHECK_HRESULT(hr, CVisioHyperlink, putNewWindow);
  17486. }
  17487.  
  17488.  
  17489. VW_INLINE BSTR_HELPER_CLASS FAR CVisioHyperlink::getExtraInfo()
  17490. {
  17491.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17492.     BSTR ret= 0;
  17493.     CHECK_IP(GetIP(), CVisioHyperlink, getExtraInfo);
  17494.     if (NULL!=GetIP())
  17495.         hr= GetIP()->get_ExtraInfo(&ret);
  17496.     CHECK_HRESULT(hr, CVisioHyperlink, getExtraInfo);
  17497.     return BSTR_HELPER_CLASS(ret, TRUE);
  17498. }
  17499.  
  17500.  
  17501. VW_INLINE void CVisioHyperlink::putExtraInfo(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17502. {
  17503.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17504.     CHECK_IP(GetIP(), CVisioHyperlink, putExtraInfo);
  17505.     if (NULL!=GetIP())
  17506.         hr= GetIP()->put_ExtraInfo(param01);
  17507.     CHECK_HRESULT(hr, CVisioHyperlink, putExtraInfo);
  17508. }
  17509.  
  17510.  
  17511. VW_INLINE BSTR_HELPER_CLASS FAR CVisioHyperlink::getFrame()
  17512. {
  17513.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17514.     BSTR ret= 0;
  17515.     CHECK_IP(GetIP(), CVisioHyperlink, getFrame);
  17516.     if (NULL!=GetIP())
  17517.         hr= GetIP()->get_Frame(&ret);
  17518.     CHECK_HRESULT(hr, CVisioHyperlink, getFrame);
  17519.     return BSTR_HELPER_CLASS(ret, TRUE);
  17520. }
  17521.  
  17522.  
  17523. VW_INLINE void CVisioHyperlink::putFrame(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17524. {
  17525.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17526.     CHECK_IP(GetIP(), CVisioHyperlink, putFrame);
  17527.     if (NULL!=GetIP())
  17528.         hr= GetIP()->put_Frame(param01);
  17529.     CHECK_HRESULT(hr, CVisioHyperlink, putFrame);
  17530. }
  17531.  
  17532.  
  17533. VW_INLINE void CVisioHyperlink::AddToFavorites(VARIANT_HELPER_CLASS FAR &FavoritesTitle)
  17534. {
  17535.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17536.     CHECK_IP(GetIP(), CVisioHyperlink, AddToFavorites);
  17537.     if (NULL!=GetIP())
  17538.         hr= GetIP()->AddToFavorites(FavoritesTitle);
  17539.     CHECK_HRESULT(hr, CVisioHyperlink, AddToFavorites);
  17540. }
  17541.  
  17542.  
  17543. VW_INLINE void CVisioHyperlink::Follow()
  17544. {
  17545.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17546.     CHECK_IP(GetIP(), CVisioHyperlink, Follow);
  17547.     if (NULL!=GetIP())
  17548.         hr= GetIP()->Follow();
  17549.     CHECK_HRESULT(hr, CVisioHyperlink, Follow);
  17550. }
  17551.  
  17552.  
  17553. VW_INLINE void CVisioHyperlink::Delete()
  17554. {
  17555.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17556.     CHECK_IP(GetIP(), CVisioHyperlink, Delete);
  17557.     if (NULL!=GetIP())
  17558.         hr= GetIP()->Delete();
  17559.     CHECK_HRESULT(hr, CVisioHyperlink, Delete);
  17560. }
  17561.  
  17562.  
  17563. VW_INLINE void CVisioHyperlink::Copy()
  17564. {
  17565.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17566.     CHECK_IP(GetIP(), CVisioHyperlink, Copy);
  17567.     if (NULL!=GetIP())
  17568.         hr= GetIP()->Copy();
  17569.     CHECK_HRESULT(hr, CVisioHyperlink, Copy);
  17570. }
  17571.  
  17572.  
  17573. VW_INLINE BSTR_HELPER_CLASS FAR CVisioHyperlink::CreateURL(short CanonicalForm)
  17574. {
  17575.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17576.     BSTR ret= 0;
  17577.     CHECK_IP(GetIP(), CVisioHyperlink, CreateURL);
  17578.     if (NULL!=GetIP())
  17579.         hr= GetIP()->CreateURL(CanonicalForm, &ret);
  17580.     CHECK_HRESULT(hr, CVisioHyperlink, CreateURL);
  17581.     return BSTR_HELPER_CLASS(ret, TRUE);
  17582. }
  17583.  
  17584.  
  17585.  
  17586. //  ***************************************************************************
  17587. //  Implementation of class CVisioOLEObjects
  17588.  
  17589. VW_INLINE CVisioApplication FAR CVisioOLEObjects::Application()
  17590. {
  17591.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17592.     IVApplication FAR *lpRet= NULL;
  17593.     CHECK_IP(GetIP(), CVisioOLEObjects, Application);
  17594.     if (NULL!=GetIP())
  17595.         hr= GetIP()->get_Application(&lpRet);
  17596.     CHECK_HRESULT(hr, CVisioOLEObjects, Application);
  17597.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17598. }
  17599.  
  17600.  
  17601. VW_INLINE short CVisioOLEObjects::ObjectType()
  17602. {
  17603.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17604.     short ret= 0;
  17605.     CHECK_IP(GetIP(), CVisioOLEObjects, ObjectType);
  17606.     if (NULL!=GetIP())
  17607.         hr= GetIP()->get_ObjectType(&ret);
  17608.     CHECK_HRESULT(hr, CVisioOLEObjects, ObjectType);
  17609.     return ret;
  17610. }
  17611.  
  17612.  
  17613. VW_INLINE short CVisioOLEObjects::Stat()
  17614. {
  17615.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17616.     short ret= 0;
  17617.     CHECK_IP(GetIP(), CVisioOLEObjects, Stat);
  17618.     if (NULL!=GetIP())
  17619.         hr= GetIP()->get_Stat(&ret);
  17620.     CHECK_HRESULT(hr, CVisioOLEObjects, Stat);
  17621.     return ret;
  17622. }
  17623.  
  17624.  
  17625. VW_INLINE CVisioOLEObject FAR CVisioOLEObjects::Item(VARIANT_HELPER_CLASS FAR &NameOrIndex)
  17626. {
  17627.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17628.     IVOLEObject FAR *lpRet= NULL;
  17629.     CHECK_IP(GetIP(), CVisioOLEObjects, Item);
  17630.     if (NULL!=GetIP())
  17631.         hr= GetIP()->get_Item(NameOrIndex, &lpRet);
  17632.     CHECK_HRESULT(hr, CVisioOLEObjects, Item);
  17633.     return CVisioOLEObject(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17634. }
  17635.  
  17636.  
  17637. VW_INLINE short CVisioOLEObjects::Count()
  17638. {
  17639.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17640.     short ret= 0;
  17641.     CHECK_IP(GetIP(), CVisioOLEObjects, Count);
  17642.     if (NULL!=GetIP())
  17643.         hr= GetIP()->get_Count(&ret);
  17644.     CHECK_HRESULT(hr, CVisioOLEObjects, Count);
  17645.     return ret;
  17646. }
  17647.  
  17648.  
  17649.  
  17650. //  ***************************************************************************
  17651. //  Implementation of class CVisioOLEObject
  17652.  
  17653. VW_INLINE CVisioApplication FAR CVisioOLEObject::Application()
  17654. {
  17655.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17656.     IVApplication FAR *lpRet= NULL;
  17657.     CHECK_IP(GetIP(), CVisioOLEObject, Application);
  17658.     if (NULL!=GetIP())
  17659.         hr= GetIP()->get_Application(&lpRet);
  17660.     CHECK_HRESULT(hr, CVisioOLEObject, Application);
  17661.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17662. }
  17663.  
  17664.  
  17665. VW_INLINE CVisioShape FAR CVisioOLEObject::Shape()
  17666. {
  17667.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17668.     IVShape FAR *lpRet= NULL;
  17669.     CHECK_IP(GetIP(), CVisioOLEObject, Shape);
  17670.     if (NULL!=GetIP())
  17671.         hr= GetIP()->get_Shape(&lpRet);
  17672.     CHECK_HRESULT(hr, CVisioOLEObject, Shape);
  17673.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17674. }
  17675.  
  17676.  
  17677. VW_INLINE short CVisioOLEObject::ObjectType()
  17678. {
  17679.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17680.     short ret= 0;
  17681.     CHECK_IP(GetIP(), CVisioOLEObject, ObjectType);
  17682.     if (NULL!=GetIP())
  17683.         hr= GetIP()->get_ObjectType(&ret);
  17684.     CHECK_HRESULT(hr, CVisioOLEObject, ObjectType);
  17685.     return ret;
  17686. }
  17687.  
  17688.  
  17689. VW_INLINE short CVisioOLEObject::Stat()
  17690. {
  17691.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17692.     short ret= 0;
  17693.     CHECK_IP(GetIP(), CVisioOLEObject, Stat);
  17694.     if (NULL!=GetIP())
  17695.         hr= GetIP()->get_Stat(&ret);
  17696.     CHECK_HRESULT(hr, CVisioOLEObject, Stat);
  17697.     return ret;
  17698. }
  17699.  
  17700.  
  17701. VW_INLINE BSTR_HELPER_CLASS FAR CVisioOLEObject::ClassID()
  17702. {
  17703.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17704.     BSTR ret= 0;
  17705.     CHECK_IP(GetIP(), CVisioOLEObject, ClassID);
  17706.     if (NULL!=GetIP())
  17707.         hr= GetIP()->get_ClassID(&ret);
  17708.     CHECK_HRESULT(hr, CVisioOLEObject, ClassID);
  17709.     return BSTR_HELPER_CLASS(ret, TRUE);
  17710. }
  17711.  
  17712.  
  17713. VW_INLINE BSTR_HELPER_CLASS FAR CVisioOLEObject::ProgID()
  17714. {
  17715.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17716.     BSTR ret= 0;
  17717.     CHECK_IP(GetIP(), CVisioOLEObject, ProgID);
  17718.     if (NULL!=GetIP())
  17719.         hr= GetIP()->get_ProgID(&ret);
  17720.     CHECK_HRESULT(hr, CVisioOLEObject, ProgID);
  17721.     return BSTR_HELPER_CLASS(ret, TRUE);
  17722. }
  17723.  
  17724.  
  17725. VW_INLINE short CVisioOLEObject::ForeignType()
  17726. {
  17727.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17728.     short ret= 0;
  17729.     CHECK_IP(GetIP(), CVisioOLEObject, ForeignType);
  17730.     if (NULL!=GetIP())
  17731.         hr= GetIP()->get_ForeignType(&ret);
  17732.     CHECK_HRESULT(hr, CVisioOLEObject, ForeignType);
  17733.     return ret;
  17734. }
  17735.  
  17736.  
  17737. VW_INLINE IDispatch FAR *CVisioOLEObject::Object()
  17738. {
  17739.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17740.     IDispatch FAR *lpRet= NULL;
  17741.     CHECK_IP(GetIP(), CVisioOLEObject, Object);
  17742.     if (NULL!=GetIP())
  17743.         hr= GetIP()->get_Object(&lpRet);
  17744.     CHECK_HRESULT(hr, CVisioOLEObject, Object);
  17745.     return lpRet;
  17746. }
  17747.  
  17748.  
  17749.  
  17750. //  ***************************************************************************
  17751. //  Implementation of class CVisioPaths
  17752.  
  17753. VW_INLINE CVisioApplication FAR CVisioPaths::Application()
  17754. {
  17755.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17756.     IVApplication FAR *lpRet= NULL;
  17757.     CHECK_IP(GetIP(), CVisioPaths, Application);
  17758.     if (NULL!=GetIP())
  17759.         hr= GetIP()->get_Application(&lpRet);
  17760.     CHECK_HRESULT(hr, CVisioPaths, Application);
  17761.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17762. }
  17763.  
  17764.  
  17765. VW_INLINE short CVisioPaths::ObjectType()
  17766. {
  17767.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17768.     short ret= 0;
  17769.     CHECK_IP(GetIP(), CVisioPaths, ObjectType);
  17770.     if (NULL!=GetIP())
  17771.         hr= GetIP()->get_ObjectType(&ret);
  17772.     CHECK_HRESULT(hr, CVisioPaths, ObjectType);
  17773.     return ret;
  17774. }
  17775.  
  17776.  
  17777. VW_INLINE CVisioPath FAR CVisioPaths::Item(short Index)
  17778. {
  17779.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17780.     IVPath FAR *lpRet= NULL;
  17781.     CHECK_IP(GetIP(), CVisioPaths, Item);
  17782.     if (NULL!=GetIP())
  17783.         hr= GetIP()->get_Item(Index, &lpRet);
  17784.     CHECK_HRESULT(hr, CVisioPaths, Item);
  17785.     return CVisioPath(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17786. }
  17787.  
  17788.  
  17789. VW_INLINE short CVisioPaths::Count()
  17790. {
  17791.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17792.     short ret= 0;
  17793.     CHECK_IP(GetIP(), CVisioPaths, Count);
  17794.     if (NULL!=GetIP())
  17795.         hr= GetIP()->get_Count(&ret);
  17796.     CHECK_HRESULT(hr, CVisioPaths, Count);
  17797.     return ret;
  17798. }
  17799.  
  17800.  
  17801.  
  17802. //  ***************************************************************************
  17803. //  Implementation of class CVisioPath
  17804.  
  17805. VW_INLINE CVisioApplication FAR CVisioPath::Application()
  17806. {
  17807.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17808.     IVApplication FAR *lpRet= NULL;
  17809.     CHECK_IP(GetIP(), CVisioPath, Application);
  17810.     if (NULL!=GetIP())
  17811.         hr= GetIP()->get_Application(&lpRet);
  17812.     CHECK_HRESULT(hr, CVisioPath, Application);
  17813.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17814. }
  17815.  
  17816.  
  17817. VW_INLINE short CVisioPath::ObjectType()
  17818. {
  17819.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17820.     short ret= 0;
  17821.     CHECK_IP(GetIP(), CVisioPath, ObjectType);
  17822.     if (NULL!=GetIP())
  17823.         hr= GetIP()->get_ObjectType(&ret);
  17824.     CHECK_HRESULT(hr, CVisioPath, ObjectType);
  17825.     return ret;
  17826. }
  17827.  
  17828.  
  17829. VW_INLINE CVisioCurve FAR CVisioPath::Item(short Index)
  17830. {
  17831.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17832.     IVCurve FAR *lpRet= NULL;
  17833.     CHECK_IP(GetIP(), CVisioPath, Item);
  17834.     if (NULL!=GetIP())
  17835.         hr= GetIP()->get_Item(Index, &lpRet);
  17836.     CHECK_HRESULT(hr, CVisioPath, Item);
  17837.     return CVisioCurve(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17838. }
  17839.  
  17840.  
  17841. VW_INLINE short CVisioPath::Count()
  17842. {
  17843.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17844.     short ret= 0;
  17845.     CHECK_IP(GetIP(), CVisioPath, Count);
  17846.     if (NULL!=GetIP())
  17847.         hr= GetIP()->get_Count(&ret);
  17848.     CHECK_HRESULT(hr, CVisioPath, Count);
  17849.     return ret;
  17850. }
  17851.  
  17852.  
  17853. VW_INLINE short CVisioPath::Closed()
  17854. {
  17855.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17856.     short ret= 0;
  17857.     CHECK_IP(GetIP(), CVisioPath, Closed);
  17858.     if (NULL!=GetIP())
  17859.         hr= GetIP()->get_Closed(&ret);
  17860.     CHECK_HRESULT(hr, CVisioPath, Closed);
  17861.     return ret;
  17862. }
  17863.  
  17864.  
  17865. VW_INLINE void CVisioPath::Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray)
  17866. {
  17867.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17868.     CHECK_IP(GetIP(), CVisioPath, Points);
  17869.     if (NULL!=GetIP())
  17870.         hr= GetIP()->Points(Tolerance, xyArray);
  17871.     CHECK_HRESULT(hr, CVisioPath, Points);
  17872. }
  17873.  
  17874.  
  17875.  
  17876. //  ***************************************************************************
  17877. //  Implementation of class CVisioCurve
  17878.  
  17879. VW_INLINE CVisioApplication FAR CVisioCurve::Application()
  17880. {
  17881.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17882.     IVApplication FAR *lpRet= NULL;
  17883.     CHECK_IP(GetIP(), CVisioCurve, Application);
  17884.     if (NULL!=GetIP())
  17885.         hr= GetIP()->get_Application(&lpRet);
  17886.     CHECK_HRESULT(hr, CVisioCurve, Application);
  17887.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  17888. }
  17889.  
  17890.  
  17891. VW_INLINE short CVisioCurve::ObjectType()
  17892. {
  17893.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17894.     short ret= 0;
  17895.     CHECK_IP(GetIP(), CVisioCurve, ObjectType);
  17896.     if (NULL!=GetIP())
  17897.         hr= GetIP()->get_ObjectType(&ret);
  17898.     CHECK_HRESULT(hr, CVisioCurve, ObjectType);
  17899.     return ret;
  17900. }
  17901.  
  17902.  
  17903. VW_INLINE short CVisioCurve::Closed()
  17904. {
  17905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17906.     short ret= 0;
  17907.     CHECK_IP(GetIP(), CVisioCurve, Closed);
  17908.     if (NULL!=GetIP())
  17909.         hr= GetIP()->get_Closed(&ret);
  17910.     CHECK_HRESULT(hr, CVisioCurve, Closed);
  17911.     return ret;
  17912. }
  17913.  
  17914.  
  17915. VW_INLINE void CVisioCurve::Points(double Tolerance, /*double*/ SAFEARRAY FAR * FAR *xyArray)
  17916. {
  17917.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17918.     CHECK_IP(GetIP(), CVisioCurve, Points);
  17919.     if (NULL!=GetIP())
  17920.         hr= GetIP()->Points(Tolerance, xyArray);
  17921.     CHECK_HRESULT(hr, CVisioCurve, Points);
  17922. }
  17923.  
  17924.  
  17925. VW_INLINE double CVisioCurve::Start()
  17926. {
  17927.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17928.     double ret= 0;
  17929.     CHECK_IP(GetIP(), CVisioCurve, Start);
  17930.     if (NULL!=GetIP())
  17931.         hr= GetIP()->get_Start(&ret);
  17932.     CHECK_HRESULT(hr, CVisioCurve, Start);
  17933.     return ret;
  17934. }
  17935.  
  17936.  
  17937. VW_INLINE double CVisioCurve::End()
  17938. {
  17939.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17940.     double ret= 0;
  17941.     CHECK_IP(GetIP(), CVisioCurve, End);
  17942.     if (NULL!=GetIP())
  17943.         hr= GetIP()->get_End(&ret);
  17944.     CHECK_HRESULT(hr, CVisioCurve, End);
  17945.     return ret;
  17946. }
  17947.  
  17948.  
  17949. VW_INLINE void CVisioCurve::Point(double t, double FAR *x, double FAR *y)
  17950. {
  17951.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17952.     CHECK_IP(GetIP(), CVisioCurve, Point);
  17953.     if (NULL!=GetIP())
  17954.         hr= GetIP()->Point(t, x, y);
  17955.     CHECK_HRESULT(hr, CVisioCurve, Point);
  17956. }
  17957.  
  17958.  
  17959. VW_INLINE void CVisioCurve::PointAndDerivatives(double t, short n, double FAR *x, double FAR *y, double FAR *dxdt, double FAR *dydt, double FAR *ddxdt, double FAR *ddydt)
  17960. {
  17961.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17962.     CHECK_IP(GetIP(), CVisioCurve, PointAndDerivatives);
  17963.     if (NULL!=GetIP())
  17964.         hr= GetIP()->PointAndDerivatives(t, n, x, y, dxdt, dydt, ddxdt, ddydt);
  17965.     CHECK_HRESULT(hr, CVisioCurve, PointAndDerivatives);
  17966. }
  17967.  
  17968.  
  17969.  
  17970. //  ***************************************************************************
  17971. //  Implementation of class CVisioExtender
  17972.  
  17973. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getName()
  17974. {
  17975.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17976.     BSTR ret= 0;
  17977.     CHECK_IP(GetIP(), CVisioExtender, getName);
  17978.     if (NULL!=GetIP())
  17979.         hr= GetIP()->get_Name(&ret);
  17980.     CHECK_HRESULT(hr, CVisioExtender, getName);
  17981.     return BSTR_HELPER_CLASS(ret, TRUE);
  17982. }
  17983.  
  17984.  
  17985. VW_INLINE void CVisioExtender::putName(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  17986. {
  17987.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17988.     CHECK_IP(GetIP(), CVisioExtender, putName);
  17989.     if (NULL!=GetIP())
  17990.         hr= GetIP()->put_Name(param01);
  17991.     CHECK_HRESULT(hr, CVisioExtender, putName);
  17992. }
  17993.  
  17994.  
  17995. VW_INLINE IUnknown FAR *CVisioExtender::Object()
  17996. {
  17997.     HRESULT hr= VW_INTERFACE_NOT_SET;
  17998.     IUnknown FAR *lpRet= NULL;
  17999.     CHECK_IP(GetIP(), CVisioExtender, Object);
  18000.     if (NULL!=GetIP())
  18001.         hr= GetIP()->get_Object(&lpRet);
  18002.     CHECK_HRESULT(hr, CVisioExtender, Object);
  18003.     return lpRet;
  18004. }
  18005.  
  18006.  
  18007. VW_INLINE IUnknown FAR *CVisioExtender::Parent()
  18008. {
  18009.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18010.     IUnknown FAR *lpRet= NULL;
  18011.     CHECK_IP(GetIP(), CVisioExtender, Parent);
  18012.     if (NULL!=GetIP())
  18013.         hr= GetIP()->get_Parent(&lpRet);
  18014.     CHECK_HRESULT(hr, CVisioExtender, Parent);
  18015.     return lpRet;
  18016. }
  18017.  
  18018.  
  18019. VW_INLINE void CVisioExtender::Delete()
  18020. {
  18021.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18022.     CHECK_IP(GetIP(), CVisioExtender, Delete);
  18023.     if (NULL!=GetIP())
  18024.         hr= GetIP()->Delete();
  18025.     CHECK_HRESULT(hr, CVisioExtender, Delete);
  18026. }
  18027.  
  18028.  
  18029. VW_INLINE void CVisioExtender::Index()
  18030. {
  18031.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18032.     CHECK_IP(GetIP(), CVisioExtender, Index);
  18033.     if (NULL!=GetIP())
  18034.         hr= GetIP()->Index();
  18035.     CHECK_HRESULT(hr, CVisioExtender, Index);
  18036. }
  18037.  
  18038.  
  18039. VW_INLINE CVisioShape FAR CVisioExtender::Shape()
  18040. {
  18041.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18042.     IVShape FAR *lpRet= NULL;
  18043.     CHECK_IP(GetIP(), CVisioExtender, Shape);
  18044.     if (NULL!=GetIP())
  18045.         hr= GetIP()->get_Shape(&lpRet);
  18046.     CHECK_HRESULT(hr, CVisioExtender, Shape);
  18047.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18048. }
  18049.  
  18050.  
  18051. VW_INLINE void CVisioExtender::Group()
  18052. {
  18053.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18054.     CHECK_IP(GetIP(), CVisioExtender, Group);
  18055.     if (NULL!=GetIP())
  18056.         hr= GetIP()->Group();
  18057.     CHECK_HRESULT(hr, CVisioExtender, Group);
  18058. }
  18059.  
  18060.  
  18061. VW_INLINE void CVisioExtender::BringForward()
  18062. {
  18063.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18064.     CHECK_IP(GetIP(), CVisioExtender, BringForward);
  18065.     if (NULL!=GetIP())
  18066.         hr= GetIP()->BringForward();
  18067.     CHECK_HRESULT(hr, CVisioExtender, BringForward);
  18068. }
  18069.  
  18070.  
  18071. VW_INLINE void CVisioExtender::BringToFront()
  18072. {
  18073.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18074.     CHECK_IP(GetIP(), CVisioExtender, BringToFront);
  18075.     if (NULL!=GetIP())
  18076.         hr= GetIP()->BringToFront();
  18077.     CHECK_HRESULT(hr, CVisioExtender, BringToFront);
  18078. }
  18079.  
  18080.  
  18081. VW_INLINE void CVisioExtender::ConvertToGroup()
  18082. {
  18083.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18084.     CHECK_IP(GetIP(), CVisioExtender, ConvertToGroup);
  18085.     if (NULL!=GetIP())
  18086.         hr= GetIP()->ConvertToGroup();
  18087.     CHECK_HRESULT(hr, CVisioExtender, ConvertToGroup);
  18088. }
  18089.  
  18090.  
  18091. VW_INLINE void CVisioExtender::SendBackward()
  18092. {
  18093.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18094.     CHECK_IP(GetIP(), CVisioExtender, SendBackward);
  18095.     if (NULL!=GetIP())
  18096.         hr= GetIP()->SendBackward();
  18097.     CHECK_HRESULT(hr, CVisioExtender, SendBackward);
  18098. }
  18099.  
  18100.  
  18101. VW_INLINE void CVisioExtender::SendToBack()
  18102. {
  18103.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18104.     CHECK_IP(GetIP(), CVisioExtender, SendToBack);
  18105.     if (NULL!=GetIP())
  18106.         hr= GetIP()->SendToBack();
  18107.     CHECK_HRESULT(hr, CVisioExtender, SendToBack);
  18108. }
  18109.  
  18110.  
  18111. VW_INLINE CVisioDocument FAR CVisioExtender::Document()
  18112. {
  18113.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18114.     IVDocument FAR *lpRet= NULL;
  18115.     CHECK_IP(GetIP(), CVisioExtender, Document);
  18116.     if (NULL!=GetIP())
  18117.         hr= GetIP()->get_Document(&lpRet);
  18118.     CHECK_HRESULT(hr, CVisioExtender, Document);
  18119.     return CVisioDocument(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18120. }
  18121.  
  18122.  
  18123. VW_INLINE IDispatch FAR *CVisioExtender::ShapeParent()
  18124. {
  18125.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18126.     IDispatch FAR *lpRet= NULL;
  18127.     CHECK_IP(GetIP(), CVisioExtender, ShapeParent);
  18128.     if (NULL!=GetIP())
  18129.         hr= GetIP()->get_ShapeParent(&lpRet);
  18130.     CHECK_HRESULT(hr, CVisioExtender, ShapeParent);
  18131.     return lpRet;
  18132. }
  18133.  
  18134.  
  18135. VW_INLINE CVisioApplication FAR CVisioExtender::Application()
  18136. {
  18137.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18138.     IVApplication FAR *lpRet= NULL;
  18139.     CHECK_IP(GetIP(), CVisioExtender, Application);
  18140.     if (NULL!=GetIP())
  18141.         hr= GetIP()->get_Application(&lpRet);
  18142.     CHECK_HRESULT(hr, CVisioExtender, Application);
  18143.     return CVisioApplication(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18144. }
  18145.  
  18146.  
  18147. VW_INLINE CVisioMaster FAR CVisioExtender::Master()
  18148. {
  18149.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18150.     IVMaster FAR *lpRet= NULL;
  18151.     CHECK_IP(GetIP(), CVisioExtender, Master);
  18152.     if (NULL!=GetIP())
  18153.         hr= GetIP()->get_Master(&lpRet);
  18154.     CHECK_HRESULT(hr, CVisioExtender, Master);
  18155.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18156. }
  18157.  
  18158.  
  18159. VW_INLINE CVisioCell FAR CVisioExtender::Cells(BSTR_HELPER_CLASS FAR &CellName)
  18160. {
  18161.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18162.     IVCell FAR *lpRet= NULL;
  18163.     CHECK_IP(GetIP(), CVisioExtender, Cells);
  18164.     if (NULL!=GetIP())
  18165.         hr= GetIP()->get_Cells(CellName, &lpRet);
  18166.     CHECK_HRESULT(hr, CVisioExtender, Cells);
  18167.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18168. }
  18169.  
  18170.  
  18171. VW_INLINE CVisioCell FAR CVisioExtender::CellsSRC(short Section, short Row, short Column)
  18172. {
  18173.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18174.     IVCell FAR *lpRet= NULL;
  18175.     CHECK_IP(GetIP(), CVisioExtender, CellsSRC);
  18176.     if (NULL!=GetIP())
  18177.         hr= GetIP()->get_CellsSRC(Section, Row, Column, &lpRet);
  18178.     CHECK_HRESULT(hr, CVisioExtender, CellsSRC);
  18179.     return CVisioCell(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18180. }
  18181.  
  18182.  
  18183. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getData1()
  18184. {
  18185.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18186.     BSTR ret= 0;
  18187.     CHECK_IP(GetIP(), CVisioExtender, getData1);
  18188.     if (NULL!=GetIP())
  18189.         hr= GetIP()->get_Data1(&ret);
  18190.     CHECK_HRESULT(hr, CVisioExtender, getData1);
  18191.     return BSTR_HELPER_CLASS(ret, TRUE);
  18192. }
  18193.  
  18194.  
  18195. VW_INLINE void CVisioExtender::putData1(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18196. {
  18197.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18198.     CHECK_IP(GetIP(), CVisioExtender, putData1);
  18199.     if (NULL!=GetIP())
  18200.         hr= GetIP()->put_Data1(param01);
  18201.     CHECK_HRESULT(hr, CVisioExtender, putData1);
  18202. }
  18203.  
  18204.  
  18205. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getData2()
  18206. {
  18207.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18208.     BSTR ret= 0;
  18209.     CHECK_IP(GetIP(), CVisioExtender, getData2);
  18210.     if (NULL!=GetIP())
  18211.         hr= GetIP()->get_Data2(&ret);
  18212.     CHECK_HRESULT(hr, CVisioExtender, getData2);
  18213.     return BSTR_HELPER_CLASS(ret, TRUE);
  18214. }
  18215.  
  18216.  
  18217. VW_INLINE void CVisioExtender::putData2(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18218. {
  18219.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18220.     CHECK_IP(GetIP(), CVisioExtender, putData2);
  18221.     if (NULL!=GetIP())
  18222.         hr= GetIP()->put_Data2(param01);
  18223.     CHECK_HRESULT(hr, CVisioExtender, putData2);
  18224. }
  18225.  
  18226.  
  18227. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getData3()
  18228. {
  18229.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18230.     BSTR ret= 0;
  18231.     CHECK_IP(GetIP(), CVisioExtender, getData3);
  18232.     if (NULL!=GetIP())
  18233.         hr= GetIP()->get_Data3(&ret);
  18234.     CHECK_HRESULT(hr, CVisioExtender, getData3);
  18235.     return BSTR_HELPER_CLASS(ret, TRUE);
  18236. }
  18237.  
  18238.  
  18239. VW_INLINE void CVisioExtender::putData3(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18240. {
  18241.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18242.     CHECK_IP(GetIP(), CVisioExtender, putData3);
  18243.     if (NULL!=GetIP())
  18244.         hr= GetIP()->put_Data3(param01);
  18245.     CHECK_HRESULT(hr, CVisioExtender, putData3);
  18246. }
  18247.  
  18248.  
  18249. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getHelp()
  18250. {
  18251.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18252.     BSTR ret= 0;
  18253.     CHECK_IP(GetIP(), CVisioExtender, getHelp);
  18254.     if (NULL!=GetIP())
  18255.         hr= GetIP()->get_Help(&ret);
  18256.     CHECK_HRESULT(hr, CVisioExtender, getHelp);
  18257.     return BSTR_HELPER_CLASS(ret, TRUE);
  18258. }
  18259.  
  18260.  
  18261. VW_INLINE void CVisioExtender::putHelp(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18262. {
  18263.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18264.     CHECK_IP(GetIP(), CVisioExtender, putHelp);
  18265.     if (NULL!=GetIP())
  18266.         hr= GetIP()->put_Help(param01);
  18267.     CHECK_HRESULT(hr, CVisioExtender, putHelp);
  18268. }
  18269.  
  18270.  
  18271. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::NameID()
  18272. {
  18273.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18274.     BSTR ret= 0;
  18275.     CHECK_IP(GetIP(), CVisioExtender, NameID);
  18276.     if (NULL!=GetIP())
  18277.         hr= GetIP()->get_NameID(&ret);
  18278.     CHECK_HRESULT(hr, CVisioExtender, NameID);
  18279.     return BSTR_HELPER_CLASS(ret, TRUE);
  18280. }
  18281.  
  18282.  
  18283. VW_INLINE void CVisioExtender::ShapeCopy()
  18284. {
  18285.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18286.     CHECK_IP(GetIP(), CVisioExtender, ShapeCopy);
  18287.     if (NULL!=GetIP())
  18288.         hr= GetIP()->ShapeCopy();
  18289.     CHECK_HRESULT(hr, CVisioExtender, ShapeCopy);
  18290. }
  18291.  
  18292.  
  18293. VW_INLINE void CVisioExtender::ShapeCut()
  18294. {
  18295.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18296.     CHECK_IP(GetIP(), CVisioExtender, ShapeCut);
  18297.     if (NULL!=GetIP())
  18298.         hr= GetIP()->ShapeCut();
  18299.     CHECK_HRESULT(hr, CVisioExtender, ShapeCut);
  18300. }
  18301.  
  18302.  
  18303. VW_INLINE void CVisioExtender::ShapeDelete()
  18304. {
  18305.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18306.     CHECK_IP(GetIP(), CVisioExtender, ShapeDelete);
  18307.     if (NULL!=GetIP())
  18308.         hr= GetIP()->ShapeDelete();
  18309.     CHECK_HRESULT(hr, CVisioExtender, ShapeDelete);
  18310. }
  18311.  
  18312.  
  18313. VW_INLINE void CVisioExtender::ShapeDuplicate()
  18314. {
  18315.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18316.     CHECK_IP(GetIP(), CVisioExtender, ShapeDuplicate);
  18317.     if (NULL!=GetIP())
  18318.         hr= GetIP()->ShapeDuplicate();
  18319.     CHECK_HRESULT(hr, CVisioExtender, ShapeDuplicate);
  18320. }
  18321.  
  18322.  
  18323. VW_INLINE short CVisioExtender::RowCount(short Section)
  18324. {
  18325.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18326.     short ret= 0;
  18327.     CHECK_IP(GetIP(), CVisioExtender, RowCount);
  18328.     if (NULL!=GetIP())
  18329.         hr= GetIP()->get_RowCount(Section, &ret);
  18330.     CHECK_HRESULT(hr, CVisioExtender, RowCount);
  18331.     return ret;
  18332. }
  18333.  
  18334.  
  18335. VW_INLINE short CVisioExtender::AddSection(short Section)
  18336. {
  18337.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18338.     short ret= 0;
  18339.     CHECK_IP(GetIP(), CVisioExtender, AddSection);
  18340.     if (NULL!=GetIP())
  18341.         hr= GetIP()->AddSection(Section, &ret);
  18342.     CHECK_HRESULT(hr, CVisioExtender, AddSection);
  18343.     return ret;
  18344. }
  18345.  
  18346.  
  18347. VW_INLINE void CVisioExtender::DeleteSection(short Section)
  18348. {
  18349.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18350.     CHECK_IP(GetIP(), CVisioExtender, DeleteSection);
  18351.     if (NULL!=GetIP())
  18352.         hr= GetIP()->DeleteSection(Section);
  18353.     CHECK_HRESULT(hr, CVisioExtender, DeleteSection);
  18354. }
  18355.  
  18356.  
  18357. VW_INLINE short CVisioExtender::AddRow(short Section, short Row, short RowTag)
  18358. {
  18359.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18360.     short ret= 0;
  18361.     CHECK_IP(GetIP(), CVisioExtender, AddRow);
  18362.     if (NULL!=GetIP())
  18363.         hr= GetIP()->AddRow(Section, Row, RowTag, &ret);
  18364.     CHECK_HRESULT(hr, CVisioExtender, AddRow);
  18365.     return ret;
  18366. }
  18367.  
  18368.  
  18369. VW_INLINE void CVisioExtender::DeleteRow(short Section, short Row)
  18370. {
  18371.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18372.     CHECK_IP(GetIP(), CVisioExtender, DeleteRow);
  18373.     if (NULL!=GetIP())
  18374.         hr= GetIP()->DeleteRow(Section, Row);
  18375.     CHECK_HRESULT(hr, CVisioExtender, DeleteRow);
  18376. }
  18377.  
  18378.  
  18379. VW_INLINE short CVisioExtender::RowsCellCount(short Section, short Row)
  18380. {
  18381.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18382.     short ret= 0;
  18383.     CHECK_IP(GetIP(), CVisioExtender, RowsCellCount);
  18384.     if (NULL!=GetIP())
  18385.         hr= GetIP()->get_RowsCellCount(Section, Row, &ret);
  18386.     CHECK_HRESULT(hr, CVisioExtender, RowsCellCount);
  18387.     return ret;
  18388. }
  18389.  
  18390.  
  18391. VW_INLINE short CVisioExtender::getRowType(short Section, short Row)
  18392. {
  18393.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18394.     short ret= 0;
  18395.     CHECK_IP(GetIP(), CVisioExtender, getRowType);
  18396.     if (NULL!=GetIP())
  18397.         hr= GetIP()->get_RowType(Section, Row, &ret);
  18398.     CHECK_HRESULT(hr, CVisioExtender, getRowType);
  18399.     return ret;
  18400. }
  18401.  
  18402.  
  18403. VW_INLINE void CVisioExtender::putRowType(VW_CONST short Section, VW_CONST short Row, VW_CONST short param03)
  18404. {
  18405.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18406.     CHECK_IP(GetIP(), CVisioExtender, putRowType);
  18407.     if (NULL!=GetIP())
  18408.         hr= GetIP()->put_RowType(Section, Row, param03);
  18409.     CHECK_HRESULT(hr, CVisioExtender, putRowType);
  18410. }
  18411.  
  18412.  
  18413. VW_INLINE void CVisioExtender::SetCenter(double xPos, double yPos)
  18414. {
  18415.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18416.     CHECK_IP(GetIP(), CVisioExtender, SetCenter);
  18417.     if (NULL!=GetIP())
  18418.         hr= GetIP()->SetCenter(xPos, yPos);
  18419.     CHECK_HRESULT(hr, CVisioExtender, SetCenter);
  18420. }
  18421.  
  18422.  
  18423. VW_INLINE CVisioConnects FAR CVisioExtender::Connects()
  18424. {
  18425.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18426.     IVConnects FAR *lpRet= NULL;
  18427.     CHECK_IP(GetIP(), CVisioExtender, Connects);
  18428.     if (NULL!=GetIP())
  18429.         hr= GetIP()->get_Connects(&lpRet);
  18430.     CHECK_HRESULT(hr, CVisioExtender, Connects);
  18431.     return CVisioConnects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18432. }
  18433.  
  18434.  
  18435. VW_INLINE short CVisioExtender::ShapeIndex()
  18436. {
  18437.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18438.     short ret= 0;
  18439.     CHECK_IP(GetIP(), CVisioExtender, ShapeIndex);
  18440.     if (NULL!=GetIP())
  18441.         hr= GetIP()->get_ShapeIndex(&ret);
  18442.     CHECK_HRESULT(hr, CVisioExtender, ShapeIndex);
  18443.     return ret;
  18444. }
  18445.  
  18446.  
  18447. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getStyle()
  18448. {
  18449.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18450.     BSTR ret= 0;
  18451.     CHECK_IP(GetIP(), CVisioExtender, getStyle);
  18452.     if (NULL!=GetIP())
  18453.         hr= GetIP()->get_Style(&ret);
  18454.     CHECK_HRESULT(hr, CVisioExtender, getStyle);
  18455.     return BSTR_HELPER_CLASS(ret, TRUE);
  18456. }
  18457.  
  18458.  
  18459. VW_INLINE void CVisioExtender::putStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18460. {
  18461.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18462.     CHECK_IP(GetIP(), CVisioExtender, putStyle);
  18463.     if (NULL!=GetIP())
  18464.         hr= GetIP()->put_Style(param01);
  18465.     CHECK_HRESULT(hr, CVisioExtender, putStyle);
  18466. }
  18467.  
  18468.  
  18469. VW_INLINE void CVisioExtender::StyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18470. {
  18471.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18472.     CHECK_IP(GetIP(), CVisioExtender, StyleKeepFmt);
  18473.     if (NULL!=GetIP())
  18474.         hr= GetIP()->put_StyleKeepFmt(param01);
  18475.     CHECK_HRESULT(hr, CVisioExtender, StyleKeepFmt);
  18476. }
  18477.  
  18478.  
  18479. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getLineStyle()
  18480. {
  18481.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18482.     BSTR ret= 0;
  18483.     CHECK_IP(GetIP(), CVisioExtender, getLineStyle);
  18484.     if (NULL!=GetIP())
  18485.         hr= GetIP()->get_LineStyle(&ret);
  18486.     CHECK_HRESULT(hr, CVisioExtender, getLineStyle);
  18487.     return BSTR_HELPER_CLASS(ret, TRUE);
  18488. }
  18489.  
  18490.  
  18491. VW_INLINE void CVisioExtender::putLineStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18492. {
  18493.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18494.     CHECK_IP(GetIP(), CVisioExtender, putLineStyle);
  18495.     if (NULL!=GetIP())
  18496.         hr= GetIP()->put_LineStyle(param01);
  18497.     CHECK_HRESULT(hr, CVisioExtender, putLineStyle);
  18498. }
  18499.  
  18500.  
  18501. VW_INLINE void CVisioExtender::LineStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18502. {
  18503.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18504.     CHECK_IP(GetIP(), CVisioExtender, LineStyleKeepFmt);
  18505.     if (NULL!=GetIP())
  18506.         hr= GetIP()->put_LineStyleKeepFmt(param01);
  18507.     CHECK_HRESULT(hr, CVisioExtender, LineStyleKeepFmt);
  18508. }
  18509.  
  18510.  
  18511. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::getFillStyle()
  18512. {
  18513.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18514.     BSTR ret= 0;
  18515.     CHECK_IP(GetIP(), CVisioExtender, getFillStyle);
  18516.     if (NULL!=GetIP())
  18517.         hr= GetIP()->get_FillStyle(&ret);
  18518.     CHECK_HRESULT(hr, CVisioExtender, getFillStyle);
  18519.     return BSTR_HELPER_CLASS(ret, TRUE);
  18520. }
  18521.  
  18522.  
  18523. VW_INLINE void CVisioExtender::putFillStyle(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18524. {
  18525.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18526.     CHECK_IP(GetIP(), CVisioExtender, putFillStyle);
  18527.     if (NULL!=GetIP())
  18528.         hr= GetIP()->put_FillStyle(param01);
  18529.     CHECK_HRESULT(hr, CVisioExtender, putFillStyle);
  18530. }
  18531.  
  18532.  
  18533. VW_INLINE void CVisioExtender::FillStyleKeepFmt(VW_CONST BSTR_HELPER_CLASS FAR ¶m01)
  18534. {
  18535.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18536.     CHECK_IP(GetIP(), CVisioExtender, FillStyleKeepFmt);
  18537.     if (NULL!=GetIP())
  18538.         hr= GetIP()->put_FillStyleKeepFmt(param01);
  18539.     CHECK_HRESULT(hr, CVisioExtender, FillStyleKeepFmt);
  18540. }
  18541.  
  18542.  
  18543. VW_INLINE void CVisioExtender::Export(BSTR_HELPER_CLASS FAR &FileName)
  18544. {
  18545.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18546.     CHECK_IP(GetIP(), CVisioExtender, Export);
  18547.     if (NULL!=GetIP())
  18548.         hr= GetIP()->Export(FileName);
  18549.     CHECK_HRESULT(hr, CVisioExtender, Export);
  18550. }
  18551.  
  18552.  
  18553. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::UniqueID(short fUniqueID)
  18554. {
  18555.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18556.     BSTR ret= 0;
  18557.     CHECK_IP(GetIP(), CVisioExtender, UniqueID);
  18558.     if (NULL!=GetIP())
  18559.         hr= GetIP()->get_UniqueID(fUniqueID, &ret);
  18560.     CHECK_HRESULT(hr, CVisioExtender, UniqueID);
  18561.     return BSTR_HELPER_CLASS(ret, TRUE);
  18562. }
  18563.  
  18564.  
  18565. VW_INLINE CVisioPage FAR CVisioExtender::ContainingPage()
  18566. {
  18567.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18568.     IVPage FAR *lpRet= NULL;
  18569.     CHECK_IP(GetIP(), CVisioExtender, ContainingPage);
  18570.     if (NULL!=GetIP())
  18571.         hr= GetIP()->get_ContainingPage(&lpRet);
  18572.     CHECK_HRESULT(hr, CVisioExtender, ContainingPage);
  18573.     return CVisioPage(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18574. }
  18575.  
  18576.  
  18577. VW_INLINE CVisioMaster FAR CVisioExtender::ContainingMaster()
  18578. {
  18579.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18580.     IVMaster FAR *lpRet= NULL;
  18581.     CHECK_IP(GetIP(), CVisioExtender, ContainingMaster);
  18582.     if (NULL!=GetIP())
  18583.         hr= GetIP()->get_ContainingMaster(&lpRet);
  18584.     CHECK_HRESULT(hr, CVisioExtender, ContainingMaster);
  18585.     return CVisioMaster(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18586. }
  18587.  
  18588.  
  18589. VW_INLINE CVisioShape FAR CVisioExtender::ContainingShape()
  18590. {
  18591.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18592.     IVShape FAR *lpRet= NULL;
  18593.     CHECK_IP(GetIP(), CVisioExtender, ContainingShape);
  18594.     if (NULL!=GetIP())
  18595.         hr= GetIP()->get_ContainingShape(&lpRet);
  18596.     CHECK_HRESULT(hr, CVisioExtender, ContainingShape);
  18597.     return CVisioShape(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18598. }
  18599.  
  18600.  
  18601. VW_INLINE short CVisioExtender::SectionExists(short Section, short fLocalExists)
  18602. {
  18603.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18604.     short ret= 0;
  18605.     CHECK_IP(GetIP(), CVisioExtender, SectionExists);
  18606.     if (NULL!=GetIP())
  18607.         hr= GetIP()->get_SectionExists(Section, fLocalExists, &ret);
  18608.     CHECK_HRESULT(hr, CVisioExtender, SectionExists);
  18609.     return ret;
  18610. }
  18611.  
  18612.  
  18613. VW_INLINE short CVisioExtender::RowExists(short Section, short Row, short fLocalExists)
  18614. {
  18615.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18616.     short ret= 0;
  18617.     CHECK_IP(GetIP(), CVisioExtender, RowExists);
  18618.     if (NULL!=GetIP())
  18619.         hr= GetIP()->get_RowExists(Section, Row, fLocalExists, &ret);
  18620.     CHECK_HRESULT(hr, CVisioExtender, RowExists);
  18621.     return ret;
  18622. }
  18623.  
  18624.  
  18625. VW_INLINE short CVisioExtender::CellExists(BSTR_HELPER_CLASS FAR &CellName, short fLocalExists)
  18626. {
  18627.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18628.     short ret= 0;
  18629.     CHECK_IP(GetIP(), CVisioExtender, CellExists);
  18630.     if (NULL!=GetIP())
  18631.         hr= GetIP()->get_CellExists(CellName, fLocalExists, &ret);
  18632.     CHECK_HRESULT(hr, CVisioExtender, CellExists);
  18633.     return ret;
  18634. }
  18635.  
  18636.  
  18637. VW_INLINE short CVisioExtender::CellsSRCExists(short Section, short Row, short Column, short fLocalExists)
  18638. {
  18639.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18640.     short ret= 0;
  18641.     CHECK_IP(GetIP(), CVisioExtender, CellsSRCExists);
  18642.     if (NULL!=GetIP())
  18643.         hr= GetIP()->get_CellsSRCExists(Section, Row, Column, fLocalExists, &ret);
  18644.     CHECK_HRESULT(hr, CVisioExtender, CellsSRCExists);
  18645.     return ret;
  18646. }
  18647.  
  18648.  
  18649. VW_INLINE short CVisioExtender::LayerCount()
  18650. {
  18651.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18652.     short ret= 0;
  18653.     CHECK_IP(GetIP(), CVisioExtender, LayerCount);
  18654.     if (NULL!=GetIP())
  18655.         hr= GetIP()->get_LayerCount(&ret);
  18656.     CHECK_HRESULT(hr, CVisioExtender, LayerCount);
  18657.     return ret;
  18658. }
  18659.  
  18660.  
  18661. VW_INLINE CVisioLayer FAR CVisioExtender::Layer(short Index)
  18662. {
  18663.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18664.     IVLayer FAR *lpRet= NULL;
  18665.     CHECK_IP(GetIP(), CVisioExtender, Layer);
  18666.     if (NULL!=GetIP())
  18667.         hr= GetIP()->get_Layer(Index, &lpRet);
  18668.     CHECK_HRESULT(hr, CVisioExtender, Layer);
  18669.     return CVisioLayer(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18670. }
  18671.  
  18672.  
  18673. VW_INLINE short CVisioExtender::AddNamedRow(short Section, BSTR_HELPER_CLASS FAR &RowName, short RowTag)
  18674. {
  18675.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18676.     short ret= 0;
  18677.     CHECK_IP(GetIP(), CVisioExtender, AddNamedRow);
  18678.     if (NULL!=GetIP())
  18679.         hr= GetIP()->AddNamedRow(Section, RowName, RowTag, &ret);
  18680.     CHECK_HRESULT(hr, CVisioExtender, AddNamedRow);
  18681.     return ret;
  18682. }
  18683.  
  18684.  
  18685. VW_INLINE short CVisioExtender::AddRows(short Section, short Row, short RowTag, short RowCount)
  18686. {
  18687.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18688.     short ret= 0;
  18689.     CHECK_IP(GetIP(), CVisioExtender, AddRows);
  18690.     if (NULL!=GetIP())
  18691.         hr= GetIP()->AddRows(Section, Row, RowTag, RowCount, &ret);
  18692.     CHECK_HRESULT(hr, CVisioExtender, AddRows);
  18693.     return ret;
  18694. }
  18695.  
  18696.  
  18697. VW_INLINE CVisioEventList FAR CVisioExtender::EventList()
  18698. {
  18699.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18700.     IVEventList FAR *lpRet= NULL;
  18701.     CHECK_IP(GetIP(), CVisioExtender, EventList);
  18702.     if (NULL!=GetIP())
  18703.         hr= GetIP()->get_EventList(&lpRet);
  18704.     CHECK_HRESULT(hr, CVisioExtender, EventList);
  18705.     return CVisioEventList(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18706. }
  18707.  
  18708.  
  18709. VW_INLINE short CVisioExtender::PersistsEvents()
  18710. {
  18711.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18712.     short ret= 0;
  18713.     CHECK_IP(GetIP(), CVisioExtender, PersistsEvents);
  18714.     if (NULL!=GetIP())
  18715.         hr= GetIP()->get_PersistsEvents(&ret);
  18716.     CHECK_HRESULT(hr, CVisioExtender, PersistsEvents);
  18717.     return ret;
  18718. }
  18719.  
  18720.  
  18721. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::ClassID()
  18722. {
  18723.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18724.     BSTR ret= 0;
  18725.     CHECK_IP(GetIP(), CVisioExtender, ClassID);
  18726.     if (NULL!=GetIP())
  18727.         hr= GetIP()->get_ClassID(&ret);
  18728.     CHECK_HRESULT(hr, CVisioExtender, ClassID);
  18729.     return BSTR_HELPER_CLASS(ret, TRUE);
  18730. }
  18731.  
  18732.  
  18733. VW_INLINE IDispatch FAR *CVisioExtender::ShapeObject()
  18734. {
  18735.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18736.     IDispatch FAR *lpRet= NULL;
  18737.     CHECK_IP(GetIP(), CVisioExtender, ShapeObject);
  18738.     if (NULL!=GetIP())
  18739.         hr= GetIP()->get_ShapeObject(&lpRet);
  18740.     CHECK_HRESULT(hr, CVisioExtender, ShapeObject);
  18741.     return lpRet;
  18742. }
  18743.  
  18744.  
  18745. VW_INLINE CVisioWindow FAR CVisioExtender::OpenSheetWindow()
  18746. {
  18747.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18748.     IVWindow FAR *lpRet= NULL;
  18749.     CHECK_IP(GetIP(), CVisioExtender, OpenSheetWindow);
  18750.     if (NULL!=GetIP())
  18751.         hr= GetIP()->OpenSheetWindow(&lpRet);
  18752.     CHECK_HRESULT(hr, CVisioExtender, OpenSheetWindow);
  18753.     return CVisioWindow(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18754. }
  18755.  
  18756.  
  18757. VW_INLINE short CVisioExtender::ShapeID()
  18758. {
  18759.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18760.     short ret= 0;
  18761.     CHECK_IP(GetIP(), CVisioExtender, ShapeID);
  18762.     if (NULL!=GetIP())
  18763.         hr= GetIP()->get_ShapeID(&ret);
  18764.     CHECK_HRESULT(hr, CVisioExtender, ShapeID);
  18765.     return ret;
  18766. }
  18767.  
  18768.  
  18769. VW_INLINE void CVisioExtender::GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray)
  18770. {
  18771.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18772.     CHECK_IP(GetIP(), CVisioExtender, GetFormulas);
  18773.     if (NULL!=GetIP())
  18774.         hr= GetIP()->GetFormulas(SRCStream, formulaArray);
  18775.     CHECK_HRESULT(hr, CVisioExtender, GetFormulas);
  18776. }
  18777.  
  18778.  
  18779. VW_INLINE void CVisioExtender::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
  18780. {
  18781.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18782.     CHECK_IP(GetIP(), CVisioExtender, GetResults);
  18783.     if (NULL!=GetIP())
  18784.         hr= GetIP()->GetResults(SRCStream, Flags, UnitsNamesOrCodes, resultArray);
  18785.     CHECK_HRESULT(hr, CVisioExtender, GetResults);
  18786. }
  18787.  
  18788.  
  18789. VW_INLINE short CVisioExtender::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags)
  18790. {
  18791.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18792.     short ret= 0;
  18793.     CHECK_IP(GetIP(), CVisioExtender, SetFormulas);
  18794.     if (NULL!=GetIP())
  18795.         hr= GetIP()->SetFormulas(SRCStream, formulaArray, Flags, &ret);
  18796.     CHECK_HRESULT(hr, CVisioExtender, SetFormulas);
  18797.     return ret;
  18798. }
  18799.  
  18800.  
  18801. VW_INLINE short CVisioExtender::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags)
  18802. {
  18803.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18804.     short ret= 0;
  18805.     CHECK_IP(GetIP(), CVisioExtender, SetResults);
  18806.     if (NULL!=GetIP())
  18807.         hr= GetIP()->SetResults(SRCStream, UnitsNamesOrCodes, resultArray, Flags, &ret);
  18808.     CHECK_HRESULT(hr, CVisioExtender, SetResults);
  18809.     return ret;
  18810. }
  18811.  
  18812.  
  18813. VW_INLINE CVisioConnects FAR CVisioExtender::FromConnects()
  18814. {
  18815.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18816.     IVConnects FAR *lpRet= NULL;
  18817.     CHECK_IP(GetIP(), CVisioExtender, FromConnects);
  18818.     if (NULL!=GetIP())
  18819.         hr= GetIP()->get_FromConnects(&lpRet);
  18820.     CHECK_HRESULT(hr, CVisioExtender, FromConnects);
  18821.     return CVisioConnects(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18822. }
  18823.  
  18824.  
  18825. VW_INLINE void CVisioExtender::BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top)
  18826. {
  18827.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18828.     CHECK_IP(GetIP(), CVisioExtender, BoundingBox);
  18829.     if (NULL!=GetIP())
  18830.         hr= GetIP()->BoundingBox(Flags, lpr8Left, lpr8Bottom, lpr8Right, lpr8Top);
  18831.     CHECK_HRESULT(hr, CVisioExtender, BoundingBox);
  18832. }
  18833.  
  18834.  
  18835. VW_INLINE short CVisioExtender::HitTest(double xPos, double yPos, double Tolerance)
  18836. {
  18837.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18838.     short ret= 0;
  18839.     CHECK_IP(GetIP(), CVisioExtender, HitTest);
  18840.     if (NULL!=GetIP())
  18841.         hr= GetIP()->HitTest(xPos, yPos, Tolerance, &ret);
  18842.     CHECK_HRESULT(hr, CVisioExtender, HitTest);
  18843.     return ret;
  18844. }
  18845.  
  18846.  
  18847. VW_INLINE CVisioHyperlink FAR CVisioExtender::Hyperlink()
  18848. {
  18849.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18850.     IVHyperlink FAR *lpRet= NULL;
  18851.     CHECK_IP(GetIP(), CVisioExtender, Hyperlink);
  18852.     if (NULL!=GetIP())
  18853.         hr= GetIP()->get_Hyperlink(&lpRet);
  18854.     CHECK_HRESULT(hr, CVisioExtender, Hyperlink);
  18855.     return CVisioHyperlink(lpRet, TRUE);  //  TRUE passes refcount ownership to wrapper class instance
  18856. }
  18857.  
  18858.  
  18859. VW_INLINE BSTR_HELPER_CLASS FAR CVisioExtender::ProgID()
  18860. {
  18861.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18862.     BSTR ret= 0;
  18863.     CHECK_IP(GetIP(), CVisioExtender, ProgID);
  18864.     if (NULL!=GetIP())
  18865.         hr= GetIP()->get_ProgID(&ret);
  18866.     CHECK_HRESULT(hr, CVisioExtender, ProgID);
  18867.     return BSTR_HELPER_CLASS(ret, TRUE);
  18868. }
  18869.  
  18870.  
  18871. VW_INLINE short CVisioExtender::ObjectIsInherited()
  18872. {
  18873.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18874.     short ret= 0;
  18875.     CHECK_IP(GetIP(), CVisioExtender, ObjectIsInherited);
  18876.     if (NULL!=GetIP())
  18877.         hr= GetIP()->get_ObjectIsInherited(&ret);
  18878.     CHECK_HRESULT(hr, CVisioExtender, ObjectIsInherited);
  18879.     return ret;
  18880. }
  18881.  
  18882.  
  18883.  
  18884. //  ***************************************************************************
  18885. //  Implementation of class CVisioDispExtender
  18886.  
  18887.  
  18888. //  ***************************************************************************
  18889. //  Implementation of class CVisioAmbients
  18890.  
  18891. VW_INLINE long CVisioAmbients::BackColor()
  18892. {
  18893.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18894.     long ret= 0;
  18895.     CHECK_IP(GetIP(), CVisioAmbients, BackColor);
  18896.     if (NULL!=GetIP())
  18897.         hr= GetIP()->get_BackColor(&ret);
  18898.     CHECK_HRESULT(hr, CVisioAmbients, BackColor);
  18899.     return ret;
  18900. }
  18901.  
  18902.  
  18903. VW_INLINE BSTR_HELPER_CLASS FAR CVisioAmbients::DisplayName()
  18904. {
  18905.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18906.     BSTR ret= 0;
  18907.     CHECK_IP(GetIP(), CVisioAmbients, DisplayName);
  18908.     if (NULL!=GetIP())
  18909.         hr= GetIP()->get_DisplayName(&ret);
  18910.     CHECK_HRESULT(hr, CVisioAmbients, DisplayName);
  18911.     return BSTR_HELPER_CLASS(ret, TRUE);
  18912. }
  18913.  
  18914.  
  18915. VW_INLINE IDispatch FAR *CVisioAmbients::Font()
  18916. {
  18917.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18918.     IDispatch FAR *lpRet= NULL;
  18919.     CHECK_IP(GetIP(), CVisioAmbients, Font);
  18920.     if (NULL!=GetIP())
  18921.         hr= GetIP()->get_Font(&lpRet);
  18922.     CHECK_HRESULT(hr, CVisioAmbients, Font);
  18923.     return lpRet;
  18924. }
  18925.  
  18926.  
  18927. VW_INLINE long CVisioAmbients::ForeColor()
  18928. {
  18929.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18930.     long ret= 0;
  18931.     CHECK_IP(GetIP(), CVisioAmbients, ForeColor);
  18932.     if (NULL!=GetIP())
  18933.         hr= GetIP()->get_ForeColor(&ret);
  18934.     CHECK_HRESULT(hr, CVisioAmbients, ForeColor);
  18935.     return ret;
  18936. }
  18937.  
  18938.  
  18939. VW_INLINE long CVisioAmbients::LocaleID()
  18940. {
  18941.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18942.     long ret= 0;
  18943.     CHECK_IP(GetIP(), CVisioAmbients, LocaleID);
  18944.     if (NULL!=GetIP())
  18945.         hr= GetIP()->get_LocaleID(&ret);
  18946.     CHECK_HRESULT(hr, CVisioAmbients, LocaleID);
  18947.     return ret;
  18948. }
  18949.  
  18950.  
  18951. VW_INLINE VARIANT_BOOL CVisioAmbients::MessageReflect()
  18952. {
  18953.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18954.     VARIANT_BOOL ret= 0;
  18955.     CHECK_IP(GetIP(), CVisioAmbients, MessageReflect);
  18956.     if (NULL!=GetIP())
  18957.         hr= GetIP()->get_MessageReflect(&ret);
  18958.     CHECK_HRESULT(hr, CVisioAmbients, MessageReflect);
  18959.     return ret;
  18960. }
  18961.  
  18962.  
  18963. VW_INLINE BSTR_HELPER_CLASS FAR CVisioAmbients::ScaleUnits()
  18964. {
  18965.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18966.     BSTR ret= 0;
  18967.     CHECK_IP(GetIP(), CVisioAmbients, ScaleUnits);
  18968.     if (NULL!=GetIP())
  18969.         hr= GetIP()->get_ScaleUnits(&ret);
  18970.     CHECK_HRESULT(hr, CVisioAmbients, ScaleUnits);
  18971.     return BSTR_HELPER_CLASS(ret, TRUE);
  18972. }
  18973.  
  18974.  
  18975. VW_INLINE short CVisioAmbients::TextAlign()
  18976. {
  18977.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18978.     short ret= 0;
  18979.     CHECK_IP(GetIP(), CVisioAmbients, TextAlign);
  18980.     if (NULL!=GetIP())
  18981.         hr= GetIP()->get_TextAlign(&ret);
  18982.     CHECK_HRESULT(hr, CVisioAmbients, TextAlign);
  18983.     return ret;
  18984. }
  18985.  
  18986.  
  18987. VW_INLINE VARIANT_BOOL CVisioAmbients::UserMode()
  18988. {
  18989.     HRESULT hr= VW_INTERFACE_NOT_SET;
  18990.     VARIANT_BOOL ret= 0;
  18991.     CHECK_IP(GetIP(), CVisioAmbients, UserMode);
  18992.     if (NULL!=GetIP())
  18993.         hr= GetIP()->get_UserMode(&ret);
  18994.     CHECK_HRESULT(hr, CVisioAmbients, UserMode);
  18995.     return ret;
  18996. }
  18997.  
  18998.  
  18999. VW_INLINE VARIANT_BOOL CVisioAmbients::UIDead()
  19000. {
  19001.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19002.     VARIANT_BOOL ret= 0;
  19003.     CHECK_IP(GetIP(), CVisioAmbients, UIDead);
  19004.     if (NULL!=GetIP())
  19005.         hr= GetIP()->get_UIDead(&ret);
  19006.     CHECK_HRESULT(hr, CVisioAmbients, UIDead);
  19007.     return ret;
  19008. }
  19009.  
  19010.  
  19011. VW_INLINE VARIANT_BOOL CVisioAmbients::ShowGrabHandles()
  19012. {
  19013.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19014.     VARIANT_BOOL ret= 0;
  19015.     CHECK_IP(GetIP(), CVisioAmbients, ShowGrabHandles);
  19016.     if (NULL!=GetIP())
  19017.         hr= GetIP()->get_ShowGrabHandles(&ret);
  19018.     CHECK_HRESULT(hr, CVisioAmbients, ShowGrabHandles);
  19019.     return ret;
  19020. }
  19021.  
  19022.  
  19023. VW_INLINE VARIANT_BOOL CVisioAmbients::ShowHatching()
  19024. {
  19025.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19026.     VARIANT_BOOL ret= 0;
  19027.     CHECK_IP(GetIP(), CVisioAmbients, ShowHatching);
  19028.     if (NULL!=GetIP())
  19029.         hr= GetIP()->get_ShowHatching(&ret);
  19030.     CHECK_HRESULT(hr, CVisioAmbients, ShowHatching);
  19031.     return ret;
  19032. }
  19033.  
  19034.  
  19035. VW_INLINE VARIANT_BOOL CVisioAmbients::DisplayAsDefault()
  19036. {
  19037.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19038.     VARIANT_BOOL ret= 0;
  19039.     CHECK_IP(GetIP(), CVisioAmbients, DisplayAsDefault);
  19040.     if (NULL!=GetIP())
  19041.         hr= GetIP()->get_DisplayAsDefault(&ret);
  19042.     CHECK_HRESULT(hr, CVisioAmbients, DisplayAsDefault);
  19043.     return ret;
  19044. }
  19045.  
  19046.  
  19047. VW_INLINE VARIANT_BOOL CVisioAmbients::SupportsMnemonics()
  19048. {
  19049.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19050.     VARIANT_BOOL ret= 0;
  19051.     CHECK_IP(GetIP(), CVisioAmbients, SupportsMnemonics);
  19052.     if (NULL!=GetIP())
  19053.         hr= GetIP()->get_SupportsMnemonics(&ret);
  19054.     CHECK_HRESULT(hr, CVisioAmbients, SupportsMnemonics);
  19055.     return ret;
  19056. }
  19057.  
  19058.  
  19059. VW_INLINE VARIANT_BOOL CVisioAmbients::AutoClip()
  19060. {
  19061.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19062.     VARIANT_BOOL ret= 0;
  19063.     CHECK_IP(GetIP(), CVisioAmbients, AutoClip);
  19064.     if (NULL!=GetIP())
  19065.         hr= GetIP()->get_AutoClip(&ret);
  19066.     CHECK_HRESULT(hr, CVisioAmbients, AutoClip);
  19067.     return ret;
  19068. }
  19069.  
  19070.  
  19071. VW_INLINE long CVisioAmbients::Appearance()
  19072. {
  19073.     HRESULT hr= VW_INTERFACE_NOT_SET;
  19074.     long ret= 0;
  19075.     CHECK_IP(GetIP(), CVisioAmbients, Appearance);
  19076.     if (NULL!=GetIP())
  19077.         hr= GetIP()->get_Appearance(&ret);
  19078.     CHECK_HRESULT(hr, CVisioAmbients, Appearance);
  19079.     return ret;
  19080. }
  19081.  
  19082.  
  19083.  
  19084. //  ***************************************************************************
  19085. //  'Trailer'
  19086.  
  19087. //  Start D:\ml\bat\trailer.vis
  19088. //
  19089. //    VAO_* return codes && vaoGetObject prototype
  19090. #include "ivisreg.h"
  19091.  
  19092. //
  19093. //    Easy way to start things up:
  19094. VW_INLINE short vaoGetObjectWrap(CVisioApplication FAR &cVisApp)
  19095. {
  19096.     //    Calling this function with a local CVisioApplication
  19097.     //    will get the active Visio or launch a new one...
  19098.  
  19099.     short s;
  19100.     LPVISIOAPPLICATION pApp= NULL;
  19101.  
  19102.     s= vaoGetObject(&pApp);
  19103.  
  19104.     cVisApp= pApp;
  19105.     if (pApp!=NULL)
  19106.         pApp->Release();
  19107.  
  19108.     return s;
  19109. }
  19110.  
  19111. //  End D:\ml\bat\trailer.vis
  19112.  
  19113.  
  19114. //  ***************************************************************************
  19115. //  #endif for 'Sentinel'
  19116.  
  19117. #endif //  _Visicpp_H
  19118.